return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
This commit is contained in:
parent
2bd32dfad7
commit
d32fb7c7c4
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user