aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-03 21:06:15 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-03 21:06:15 +0000
commit3156139c506eb9d78bfdba13395f1f0f7795d8a1 (patch)
treea55599b48b55bcd495911455351756f219192bcd /engine/lib
parent59cd7d023f3b8402ce70b899800d8dfb9f7061f0 (diff)
downloadelgg-3156139c506eb9d78bfdba13395f1f0f7795d8a1.tar.gz
elgg-3156139c506eb9d78bfdba13395f1f0f7795d8a1.tar.bz2
Minor tweaks
git-svn-id: https://code.elgg.org/elgg/trunk@2388 36083f99-b078-4883-b0ff-0f9b5a30f544
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)