Memcache_DataObject checks for PEAR::isError() on results
This commit is contained in:
parent
4048d1ec3d
commit
763a5f182d
|
@ -74,7 +74,7 @@ class Memcached_DataObject extends Safe_DataObject
|
||||||
return $i;
|
return $i;
|
||||||
} else {
|
} else {
|
||||||
$i = DB_DataObject::factory($cls);
|
$i = DB_DataObject::factory($cls);
|
||||||
if (empty($i)) {
|
if (empty($i) || PEAR::isError($i)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
foreach ($kv as $k => $v) {
|
foreach ($kv as $k => $v) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user