diff options
author | Dirk Riestere | 2017-03-14 15:13:20 +0100 |
---|---|---|
committer | Dirk Riestere | 2017-03-14 15:13:20 +0100 |
commit | c8732961dbce0089fc02a118f84acf0b29a2effc (patch) | |
tree | 0530ad85ff7e1380b7d840eb0e27d66e0513e87f /modules-available/locationinfo | |
parent | Codeormat verschönert für HisInOne und ein json_encode für das backend ein... (diff) | |
download | slx-admin-c8732961dbce0089fc02a118f84acf0b29a2effc.tar.gz slx-admin-c8732961dbce0089fc02a118f84acf0b29a2effc.tar.xz slx-admin-c8732961dbce0089fc02a118f84acf0b29a2effc.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')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']; |