From: James Walker Date: Fri, 26 Feb 2010 22:52:12 +0000 (-0500) Subject: better return check in Magicsig::staticGet() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee7603b09f162188caaf1d319a70e7fd5d6aa385;p=quix0rs-gnu-social.git better return check in Magicsig::staticGet() --- diff --git a/plugins/OStatus/classes/Magicsig.php b/plugins/OStatus/classes/Magicsig.php index d47dcf1434..30da63c364 100644 --- a/plugins/OStatus/classes/Magicsig.php +++ b/plugins/OStatus/classes/Magicsig.php @@ -50,7 +50,11 @@ class Magicsig extends Memcached_DataObject public /*static*/ function staticGet($k, $v=null) { $obj = parent::staticGet(__CLASS__, $k, $v); - return Magicsig::fromString($obj->keypair); + if (!empty($obj)) { + return Magicsig::fromString($obj->keypair); + } + + return $obj; }