aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-03 20:38:40 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-03 20:38:40 +0000
commit59cd7d023f3b8402ce70b899800d8dfb9f7061f0 (patch)
tree7198e2644cbdfa68032b126f614971a834204c7a
parentbb1f3094b1a46878477d79c20bcc8cac34774556 (diff)
downloadelgg-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
-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();
}
}