From: Evan Prodromou Date: Thu, 22 Jan 2009 19:54:05 +0000 (+0000) Subject: Return $inst, not $cls, if no cache in Memcached_DataObject X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dde1c00ce727b311c399271d02cb077f6725edb5;p=quix0rs-gnu-social.git Return $inst, not $cls, if no cache in Memcached_DataObject --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index c670e99c8b..3ec7613891 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -208,7 +208,7 @@ class Memcached_DataObject extends DB_DataObject if (!$c) { $inst = new $cls(); $inst->query($qry); - return $cls; + return $inst; } $key_part = common_keyize($cls).':'.md5($qry); $ckey = common_cache_key($key_part);