From: Evan Prodromou Date: Fri, 26 Sep 2008 16:44:13 +0000 (-0400) Subject: Memcache returns false on cache miss X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92e1c41f636e5c22bc6a452872aae3b02a2f8f1c;p=quix0rs-gnu-social.git Memcache returns false on cache miss darcs-hash:20080926164413-5ed1f-d0bbbab5215e43d182e8807fc9fec6cc86dae1ae.gz --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 35660eaed5..03067aba75 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);