From de006771c7fe92a889d759c2c75c1473c420ad47 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 22 May 2016 16:54:30 -0700 Subject: renamed include files identity.php (channel.php) and Contact.php (connections.php) --- Zotlabs/Zot/Finger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Zot') diff --git a/Zotlabs/Zot/Finger.php b/Zotlabs/Zot/Finger.php index 27ba6ddca..63fdd4a4c 100644 --- a/Zotlabs/Zot/Finger.php +++ b/Zotlabs/Zot/Finger.php @@ -17,7 +17,7 @@ class Finger { * @param boolean $autofallback * fallback/failover to http if https connection cannot be established. Default is true. * - * @return array see z_post_url() and \ref mod/zfinger.php + * @return zotinfo array (with 'success' => true) or array('success' => false); */ static public function run($webbie, $channel = null, $autofallback = true) { @@ -108,7 +108,7 @@ class Finger { $x = json_decode($result['body'],true); if($x) { - $signed_token = $x['signed_token']; + $signed_token = ((is_array($x) && array_key_exists('signed_token',$x)) ? $x['signed_token'] : null); if($signed_token) { $valid = rsa_verify(self::$token,base64url_decode($signed_token),$x['key']); if(! $valid) { -- cgit v1.2.3