diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-22 19:54:05 +0000 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-22 19:54:05 +0000 |
commit | dde1c00ce727b311c399271d02cb077f6725edb5 (patch) | |
tree | dc810c755c4a757e54bce938e600e8d8eaf41661 /classes | |
parent | b6dad052bdde1ba6d91eac370f17a9af235b9e09 (diff) |
Return $inst, not $cls, if no cache in Memcached_DataObject
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Memcached_DataObject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index c670e99c8..3ec761389 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); |