]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
authorEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 02:28:46 +0000 (16:28 -1000)
committerEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 02:28:46 +0000 (16:28 -1000)
classes/Memcached_DataObject.php

index ad8876ff9d771f57791ae5b6322ceae435fdcb03..b43cb0b56f85ae5b570843ea06a4c1b7dd08e384 100644 (file)
@@ -39,14 +39,14 @@ class Memcached_DataObject extends DB_DataObject
         } else {
             $i = DB_DataObject::factory($cls);
             if (empty($i)) {
-                return null;
+                return false;
             }
             $result = $i->get($k, $v);
             if ($result) {
                 $i->encache();
                 return $i;
             } else {
-                return null;
+                return false;
             }
         }
     }