From: Evan Prodromou Date: Mon, 27 Dec 2010 05:08:20 +0000 (-0800) Subject: Memcache_DataObject checks for PEAR::isError() on results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=763a5f182d1725684ee76aca66cfc22f60d0b4e8;p=quix0rs-gnu-social.git Memcache_DataObject checks for PEAR::isError() on results --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index eb5d2627f2..d50b4071d1 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -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) {