From 59cd7d023f3b8402ce70b899800d8dfb9f7061f0 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 3 Nov 2008 20:38:40 +0000 Subject: back to private git-svn-id: https://code.elgg.org/elgg/trunk@2387 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/cache.php') 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(); } } -- cgit v1.2.3