]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Return $inst, not $cls, if no cache in Memcached_DataObject
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 22 Jan 2009 19:54:05 +0000 (19:54 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 22 Jan 2009 19:54:05 +0000 (19:54 +0000)
classes/Memcached_DataObject.php

index c670e99c8bebddc05df573916a55ce0e66d73be4..3ec7613891d14f172ffc2ddc0d4c32fa24f64376 100644 (file)
@@ -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);