better return check in Magicsig::staticGet()
This commit is contained in:
parent
a5cfda8505
commit
ee7603b09f
|
@ -50,9 +50,13 @@ class Magicsig extends Memcached_DataObject
|
|||
public /*static*/ function staticGet($k, $v=null)
|
||||
{
|
||||
$obj = parent::staticGet(__CLASS__, $k, $v);
|
||||
if (!empty($obj)) {
|
||||
return Magicsig::fromString($obj->keypair);
|
||||
}
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
||||
function table()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user