return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject

This commit is contained in:
Evan Prodromou 2010-01-02 16:28:46 -10:00
parent 2bd32dfad7
commit d32fb7c7c4

View File

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