From c8732961dbce0089fc02a118f84acf0b29a2effc Mon Sep 17 00:00:00 2001 From: Dirk Riestere Date: Tue, 14 Mar 2017 15:13:20 +0100 Subject: Codeormat verschönert für HisInOne und ein json_encode für das backend eingefügt der vergessen wurde --- modules-available/locationinfo/inc/coursebackend.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/inc/coursebackend.inc.php') diff --git a/modules-available/locationinfo/inc/coursebackend.inc.php b/modules-available/locationinfo/inc/coursebackend.inc.php index 45263601..a1566229 100644 --- a/modules-available/locationinfo/inc/coursebackend.inc.php +++ b/modules-available/locationinfo/inc/coursebackend.inc.php @@ -164,7 +164,7 @@ abstract class CourseBackend if ($this->getCacheTime() > 0 && $this->getRefreshTime() > 0) { $dbquery4 = Database::simpleQuery("SELECT locationid ,serverroomid, lastcalendarupdate FROM location_info WHERE serverid= :id", array('id' => $this->serverID)); foreach ($dbquery4->fetchAll(PDO::FETCH_COLUMN) as $row) { - if(isset($row['lastcalendarupdate'])) { + if (isset($row['lastcalendarupdate'])) { $lastUpdate = $row['lastcalendarupdate']; if (strtotime($lastUpdate) > strtotime("-" . $this->getRefreshTime() . "seconds") && strtotime($lastUpdate) > strtotime("-" . $this->getCacheTime() . "seconds")) { $sRoomIDs[$row['locationid']] = $row['serverroomid']; -- cgit v1.2.3-55-g7522