Skip to content
Snippets Groups Projects
Commit f88633b1 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

prevent php8 deprecation warnings, fixes #2287

Closes #2287

Merge request studip/studip!1510
parent a3c8a524
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
...@@ -25,7 +25,7 @@ class CT_Cache { ...@@ -25,7 +25,7 @@ class CT_Cache {
return $this->ac_get_value($str) === false ? $str : false; return $this->ac_get_value($str) === false ? $str : false;
} }
function ac_store($id, $name = null, $str) { function ac_store($id, $name, $str) {
$cache_key = self::CACHE_KEY_PREFIX . '/' . $id; $cache_key = self::CACHE_KEY_PREFIX . '/' . $id;
return $this->cache->write($cache_key, $str, self::SESSION_LIFETIME); return $this->cache->write($cache_key, $str, self::SESSION_LIFETIME);
} }
...@@ -51,7 +51,6 @@ class CT_Cache { ...@@ -51,7 +51,6 @@ class CT_Cache {
function ac_get_changed($id, $name = null) { function ac_get_changed($id, $name = null) {
} }
function ac_set_changed($id, $name = null, $timestamp) { function ac_set_changed($id, $name, $timestamp) {
} }
} }
?>
...@@ -79,7 +79,7 @@ class CT_Sql { ...@@ -79,7 +79,7 @@ class CT_Sql {
return $rs->fetchColumn(); return $rs->fetchColumn();
} }
function ac_set_changed($id, $name = null, $timestamp){ function ac_set_changed($id, $name, $timestamp){
$db = DBManager::get(); $db = DBManager::get();
$stmt = $db->prepare(sprintf("UPDATE %s SET changed = FROM_UNIXTIME(?) WHERE sid = ?", $this->database_table)); $stmt = $db->prepare(sprintf("UPDATE %s SET changed = FROM_UNIXTIME(?) WHERE sid = ?", $this->database_table));
$stmt->execute([$timestamp, $id]); $stmt->execute([$timestamp, $id]);
...@@ -99,4 +99,3 @@ class CT_Sql { ...@@ -99,4 +99,3 @@ class CT_Sql {
function ac_halt($s) { function ac_halt($s) {
} }
} }
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment