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 {
$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;
}
}
}