Просмотр исходного кода

Fixed a few cases of global $time being used without being declared global.

Frédéric G. MARAND 12 лет назад
Родитель
Сommit
7e853303fb
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      memcache.php

+ 3 - 0
memcache.php

@@ -672,6 +672,7 @@ function main() {
   // TODO, AUTH
   global $PHP_SELF;
   global $MEMCACHE_SERVERS;
+  global $time;
 
   $_GET['op'] = !isset($_GET['op']) ? '1' : $_GET['op'];
   $PHP_SELF= isset($_SERVER['PHP_SELF']) ? htmlentities(strip_tags($_SERVER['PHP_SELF'],'')) : '';
@@ -832,6 +833,7 @@ EOB;
 function hostStats() {
   global $PHP_SELF;
   global $MEMCACHE_SERVERS;
+  global $time;
 
   $phpversion = phpversion();
   $memcacheStats = getMemcacheStats();
@@ -942,6 +944,7 @@ EOB;
 function variables() {
   global $PHP_SELF;
   global $MEMCACHE_SERVERS;
+  global $time;
 
   $m = 0;
   $cacheItems= getCacheItems();