forked from GNUsocial/gnu-social
return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
This commit is contained in:
parent
2bd32dfad7
commit
d32fb7c7c4
@ -39,14 +39,14 @@ class Memcached_DataObject extends DB_DataObject
|
|||||||
} else {
|
} else {
|
||||||
$i = DB_DataObject::factory($cls);
|
$i = DB_DataObject::factory($cls);
|
||||||
if (empty($i)) {
|
if (empty($i)) {
|
||||||
return null;
|
return false;
|
||||||
}
|
}
|
||||||
$result = $i->get($k, $v);
|
$result = $i->get($k, $v);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$i->encache();
|
$i->encache();
|
||||||
return $i;
|
return $i;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user