summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-26 12:44:13 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-26 12:44:13 -0400
commit92e1c41f636e5c22bc6a452872aae3b02a2f8f1c (patch)
tree42c2fe7c6843c70af62aea3e6286f5ef668d985e
parent98add9803b7ef29ca8e181ed246b2be522679daa (diff)
Memcache returns false on cache miss
darcs-hash:20080926164413-5ed1f-d0bbbab5215e43d182e8807fc9fec6cc86dae1ae.gz
-rw-r--r--classes/Memcached_DataObject.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index 35660eaed..03067aba7 100644
--- a/classes/Memcached_DataObject.php
+++ b/classes/Memcached_DataObject.php
@@ -33,7 +33,7 @@ class Memcached_DataObject extends DB_DataObject
unset($i);
}
$i = Memcached_DataObject::getcached($cls, $k, $v);
- if (!is_null($i)) {
+ if ($i) {
return $i;
} else {
$i = DB_DataObject::staticGet($cls, $k, $v);