Browse Source

Remove deprecated parameter from apcu_cache_info() call in banner as suggested by @AngelFQC

Yannick Warnier 8 years ago
parent
commit
72ee58ae39
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/lib/banner.lib.php

+ 2 - 2
main/inc/lib/banner.lib.php

@@ -777,7 +777,7 @@ function getOnlineUsersCount($cacheEnabled = false)
 {
     $number = 0;
     if ($cacheEnabled) {
-        $apc = apcu_cache_info(null,true);
+        $apc = apcu_cache_info(true);
         $apc_end = $apc['start_time'] + $apc['ttl'];
         if (apcu_exists('my_campus_whoisonline_count_simple') AND (time() < $apc_end) AND apcu_fetch('my_campus_whoisonline_count_simple') > 0 ) {
             $number = apcu_fetch('my_campus_whoisonline_count_simple');
@@ -821,4 +821,4 @@ function getOnlineUsersInCourseCount($userId, $_course, $cacheEnabled = false)
         }
     }
     return $numberOnlineInCourse;
-}
+}