summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/coursebackend.inc.php
diff options
context:
space:
mode:
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;
}
}