From dde1c00ce727b311c399271d02cb077f6725edb5 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 Jan 2009 19:54:05 +0000 Subject: [PATCH] Return $inst, not $cls, if no cache in Memcached_DataObject --- classes/Memcached_DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5