diff options
author | Evan Prodromou <evan@status.net> | 2010-01-02 16:28:46 -1000 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-02 16:28:46 -1000 |
commit | d32fb7c7c40e3d5fa67496d5df0574fc9c2e0151 (patch) | |
tree | ad8323877de77777119ee725201ac5905dfc7152 /classes | |
parent | 2bd32dfad73d1387353199e5f45d02a9c5d770e5 (diff) |
return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Memcached_DataObject.php | 4 |
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; } } } |