diff options
author | Dirk Riestere | 2017-03-14 15:13:08 +0100 |
---|---|---|
committer | Dirk Riestere | 2017-03-14 15:13:08 +0100 |
commit | 489c5ad82573bcf85732c09e746a44129a3e6638 (patch) | |
tree | ad3e7a1600f448a18b763873ed87ba9eb98decd1 /modules-available/locationinfo/inc/coursebackend.inc.php | |
parent | API: Fixed some php warnings. (diff) | |
download | slx-admin-489c5ad82573bcf85732c09e746a44129a3e6638.tar.gz slx-admin-489c5ad82573bcf85732c09e746a44129a3e6638.tar.xz slx-admin-489c5ad82573bcf85732c09e746a44129a3e6638.zip |
Codeormat verschönert für HisInOne und ein json_encode für das backend eingefügt der vergessen wurde
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend.inc.php b/modules-available/locationinfo/inc/coursebackend.inc.php index 8fc1f4f5..45263601 100644 --- a/modules-available/locationinfo/inc/coursebackend.inc.php +++ b/modules-available/locationinfo/inc/coursebackend.inc.php @@ -149,14 +149,14 @@ abstract class CourseBackend $result = []; $sRoomIDs = []; foreach ($dbquery1->fetchAll(PDO::FETCH_ASSOC) as $row) { - $sroomID = $row['serverroomid']; + $sRoomID = $row['serverroomid']; $lastUpdate = $row['lastcalendarupdate']; $calendar = $row['calendar']; //Check if in cache if lastUpdate is null then it is interpreted as 1970 if (strtotime($lastUpdate) > strtotime("-" . $this->getCacheTime() . "seconds") && $this->getCacheTime() > 0) { - $result[$row['locationid']] = $calendar; + $result[$row['locationid']] = json_decode($calendar); } else { - $sRoomIDs[$row['locationid']] = $sroomID; + $sRoomIDs[$row['locationid']] = $sRoomID; } } |