aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/cache.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 2f3b986d8..399552785 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -198,7 +198,10 @@
public function load($key, $offset = 0, $limit = null)
{
- return ElggStaticVariableCache::$__cache[$this->cache_id][$key];
+ if (isset(ElggStaticVariableCache::$__cache[$this->cache_id][$key]))
+ return ElggStaticVariableCache::$__cache[$this->cache_id][$key];
+
+ return false;
}
public function delete($key)