Return $inst, not $cls, if no cache in Memcached_DataObject

This commit is contained in:
Evan Prodromou 2009-01-22 19:54:05 +00:00
parent b6dad052bd
commit dde1c00ce7

View 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);