From 3156139c506eb9d78bfdba13395f1f0f7795d8a1 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 3 Nov 2008 21:06:15 +0000 Subject: Minor tweaks git-svn-id: https://code.elgg.org/elgg/trunk@2388 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engine/lib/cache.php') 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) -- cgit v1.2.3