summaryrefslogtreecommitdiff
path: root/classes/Memcached_DataObject.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-02 16:28:46 -1000
committerEvan Prodromou <evan@status.net>2010-01-02 16:28:46 -1000
commitd32fb7c7c40e3d5fa67496d5df0574fc9c2e0151 (patch)
treead8323877de77777119ee725201ac5905dfc7152 /classes/Memcached_DataObject.php
parent2bd32dfad73d1387353199e5f45d02a9c5d770e5 (diff)
return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r--classes/Memcached_DataObject.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index ad8876ff9..b43cb0b56 100644
--- a/classes/Memcached_DataObject.php
+++ b/classes/Memcached_DataObject.php
@@ -39,14 +39,14 @@ class Memcached_DataObject extends DB_DataObject
} else {
$i = DB_DataObject::factory($cls);
if (empty($i)) {
- return null;
+ return false;
}
$result = $i->get($k, $v);
if ($result) {
$i->encache();
return $i;
} else {
- return null;
+ return false;
}
}
}