summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/coursebackend.inc.php
diff options
context:
space:
mode:
authorDirk Riestere2017-03-14 15:13:08 +0100
committerDirk Riestere2017-03-14 15:13:08 +0100
commit489c5ad82573bcf85732c09e746a44129a3e6638 (patch)
treead3e7a1600f448a18b763873ed87ba9eb98decd1 /modules-available/locationinfo/inc/coursebackend.inc.php
parentAPI: Fixed some php warnings. (diff)
downloadslx-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.php6
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;
}
}