diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-03 20:38:40 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-03 20:38:40 +0000 |
commit | 59cd7d023f3b8402ce70b899800d8dfb9f7061f0 (patch) | |
tree | 7198e2644cbdfa68032b126f614971a834204c7a /engine | |
parent | bb1f3094b1a46878477d79c20bcc8cac34774556 (diff) | |
download | elgg-59cd7d023f3b8402ce70b899800d8dfb9f7061f0.tar.gz elgg-59cd7d023f3b8402ce70b899800d8dfb9f7061f0.tar.bz2 |
back to private
git-svn-id: https://code.elgg.org/elgg/trunk@2387 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/cache.php | 6 |
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(); } } |