]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Memcache returns false on cache miss
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 26 Sep 2008 16:44:13 +0000 (12:44 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 26 Sep 2008 16:44:13 +0000 (12:44 -0400)
darcs-hash:20080926164413-5ed1f-d0bbbab5215e43d182e8807fc9fec6cc86dae1ae.gz

classes/Memcached_DataObject.php

index 35660eaed558dddafb91349fa31901b4242492cb..03067aba75e61131c3102cf1d855d31149c3faf8 100644 (file)
@@ -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);