diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-01-21 13:09:26 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-01-21 13:09:26 +0000 |
| commit | 4df9f170f16d60edc7437c9161c8668dc229b033 (patch) | |
| tree | 1009cffc08fd5ad331328e1bb91b8c40a579debb /lib/classes/AutoInsert.class.php | |
| parent | 88a5f717f90e0e2c31599d159144559ae5be795e (diff) | |
fixes #237
Diffstat (limited to 'lib/classes/AutoInsert.class.php')
| -rw-r--r-- | lib/classes/AutoInsert.class.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/classes/AutoInsert.class.php b/lib/classes/AutoInsert.class.php index ee2197e..2ee009f 100644 --- a/lib/classes/AutoInsert.class.php +++ b/lib/classes/AutoInsert.class.php @@ -150,7 +150,7 @@ class AutoInsert private function addUser($user_id, $seminar) { - $query = "INSERT IGNORE INTO seminar_user (Seminar_id, user_id, status, gruppe, mkdate) + $query = "INSERT IGNORE INTO seminar_user (Seminar_id, user_id, status, gruppe, mkdate) VALUES (?, ?, 'autor', ?, UNIX_TIMESTAMP())"; $statement = DBManager::get()->prepare($query); $statement->execute([$seminar['Seminar_id'], $user_id, select_group($seminar['start_time'])]); @@ -353,12 +353,11 @@ class AutoInsert /** * Returns the cache for seminars. - * @return StudipCachedArray */ - protected static function getSeminarCache() + protected static function getSeminarCache(): StudipCachedArray { if (self::$seminar_cache === null) { - self::$seminar_cache = new StudipCachedArray('/AutoInsertSeminars'); + self::$seminar_cache = new StudipCachedArray('AutoInsertSeminars'); } return self::$seminar_cache; } |
