diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-06 19:55:43 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-04-07 11:08:55 +0200 |
commit | e685c580f27c438fcda2b37005fdb0a10162b42c (patch) | |
tree | c3a2c6a2a563349ff930e476007d54cb17eb37ab /include/zot.php | |
parent | e6139c9f4950173e416b6bfabaceb2e1e813cedf (diff) | |
download | volse-hubzilla-e685c580f27c438fcda2b37005fdb0a10162b42c.tar.gz volse-hubzilla-e685c580f27c438fcda2b37005fdb0a10162b42c.tar.bz2 volse-hubzilla-e685c580f27c438fcda2b37005fdb0a10162b42c.zip |
only log zot_refresh content if json decode was successful.
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php index d1fd1db6a..3e1b27c83 100644 --- a/include/zot.php +++ b/include/zot.php @@ -310,8 +310,6 @@ function zot_refresh($them, $channel = null, $force = false) { $result = z_post_url($url . $rhs,$postvars); - logger('zot_refresh: zot-info: ' . print_r($result,true), LOGGER_DATA, LOG_DEBUG); - if ($result['success']) { $j = json_decode($result['body'],true); @@ -321,6 +319,8 @@ function zot_refresh($them, $channel = null, $force = false) { return false; } + logger('zot-info: ' . print_r($result,true), LOGGER_DATA, LOG_DEBUG); + $signed_token = ((is_array($j) && array_key_exists('signed_token',$j)) ? $j['signed_token'] : null); if($signed_token) { $valid = rsa_verify('token.' . $token,base64url_decode($signed_token),$j['key']); |