summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-22 19:54:05 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-22 19:54:05 +0000
commitdde1c00ce727b311c399271d02cb077f6725edb5 (patch)
treedc810c755c4a757e54bce938e600e8d8eaf41661
parentb6dad052bdde1ba6d91eac370f17a9af235b9e09 (diff)
Return $inst, not $cls, if no cache in Memcached_DataObject
-rw-r--r--classes/Memcached_DataObject.php2
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);