aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/cache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 89c522fea..2f3b986d8 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -167,7 +167,7 @@
*
* @var unknown_type
*/
- public static $__cache;
+ private static $__cache;
/**
* ID of a cache to use.
@@ -210,10 +210,10 @@
public function clear()
{
- if (!ElggStaticVariableCache::$__cache)
+ if (!isset(ElggStaticVariableCache::$__cache))
ElggStaticVariableCache::$__cache = array();
- if (!ElggStaticVariableCache::$__cache[$this->cache_id])
+ if (!isset(ElggStaticVariableCache::$__cache[$this->cache_id]))
ElggStaticVariableCache::$__cache[$this->cache_id] = array();
}
}