summaryrefslogtreecommitdiff
path: root/plugins/OStatus/classes/Magicsig.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-26 22:54:03 +0000
committerZach Copley <zach@status.net>2010-02-26 22:54:03 +0000
commitcd831dbc4cbdcb6afbcdc59cfee8d0df2558061c (patch)
treeb1cce33fff4eb38b24f8553fee7a82b6acee0bb5 /plugins/OStatus/classes/Magicsig.php
parentdccc9954462a014f4d241091777c3834887d933b (diff)
parentee7603b09f162188caaf1d319a70e7fd5d6aa385 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'plugins/OStatus/classes/Magicsig.php')
-rw-r--r--plugins/OStatus/classes/Magicsig.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/OStatus/classes/Magicsig.php b/plugins/OStatus/classes/Magicsig.php
index d47dcf143..30da63c36 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;
}