Memcache_DataObject checks for PEAR::isError() on results

This commit is contained in:
Evan Prodromou 2010-12-26 21:08:20 -08:00
parent 4048d1ec3d
commit 763a5f182d

View File

@ -74,7 +74,7 @@ class Memcached_DataObject extends Safe_DataObject
return $i;
} else {
$i = DB_DataObject::factory($cls);
if (empty($i)) {
if (empty($i) || PEAR::isError($i)) {
return false;
}
foreach ($kv as $k => $v) {