Was accidentally not saving cached items (doh!)

This commit is contained in:
Evan Prodromou 2009-01-22 20:51:05 +00:00
parent 4f58dbf557
commit 96bcfa4981

View File

@ -218,10 +218,7 @@ class Memcached_DataObject extends DB_DataObject
} }
$inst = new $cls(); $inst = new $cls();
$result = $inst->query($qry); $inst->query($qry);
if (!$result) {
return $inst;
}
$cached = array(); $cached = array();
while ($inst->fetch()) { while ($inst->fetch()) {
$cached[] = clone($inst); $cached[] = clone($inst);