From c1ce664741c0c2b44bf14049a577b5206cbb601e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 20 Feb 2019 22:19:36 +0100 Subject: AAAAAnd I'm retarded --- modules-available/locationinfo/inc/coursebackend.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/inc') 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) { -- cgit v1.2.3-55-g7522