diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/cache.php | 5 |
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) |