summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-20 22:19:36 +0100
committerSimon Rettberg2019-02-20 22:19:36 +0100
commitc1ce664741c0c2b44bf14049a577b5206cbb601e (patch)
treeb1134eed9568209555b647b9b901db6e57512f91 /modules-available/locationinfo
parent[locationinfo] Don't refresh calendars indefinitely (diff)
downloadslx-admin-c1ce664741c0c2b44bf14049a577b5206cbb601e.tar.gz
slx-admin-c1ce664741c0c2b44bf14049a577b5206cbb601e.tar.xz
slx-admin-c1ce664741c0c2b44bf14049a577b5206cbb601e.zip
AAAAAnd I'm retarded
Diffstat (limited to 'modules-available/locationinfo')
-rw-r--r--modules-available/locationinfo/inc/coursebackend.inc.php2
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 f8389c78..68a0e09b 100644
--- a/modules-available/locationinfo/inc/coursebackend.inc.php
+++ b/modules-available/locationinfo/inc/coursebackend.inc.php
@@ -189,7 +189,7 @@ abstract class CourseBackend
}
// Mark requested locations as used
Database::exec("UPDATE locationinfo_locationconfig SET lastuse = :now WHERE locationid IN (:locations)",
- ['locations' => $requestedLocationIds]);
+ ['locations' => $requestedLocationIds, 'now' => $NOW]);
// Check if we should refresh other rooms recently requested by front ends
$extraLocs = self::TRY_NUM_LOCATIONS - count($remoteIds);
if ($this->getRefreshTime() > $this->getCacheTime() && $extraLocs > 0) {