aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Zot/Finger.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-22 16:54:30 -0700
committerredmatrix <git@macgirvin.com>2016-05-22 16:54:30 -0700
commitde006771c7fe92a889d759c2c75c1473c420ad47 (patch)
tree157391db6d2d48980719fa07c3d317fcb85ef70c /Zotlabs/Zot/Finger.php
parent2fdd1485985e2f341b413e978cf85edb858fce41 (diff)
downloadvolse-hubzilla-de006771c7fe92a889d759c2c75c1473c420ad47.tar.gz
volse-hubzilla-de006771c7fe92a889d759c2c75c1473c420ad47.tar.bz2
volse-hubzilla-de006771c7fe92a889d759c2c75c1473c420ad47.zip
renamed include files identity.php (channel.php) and Contact.php (connections.php)
Diffstat (limited to 'Zotlabs/Zot/Finger.php')
-rw-r--r--Zotlabs/Zot/Finger.php4
1 files changed, 2 insertions, 2 deletions
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) {