diff options
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index f96792656..82efc8596 100644 --- a/include/zot.php +++ b/include/zot.php @@ -470,8 +470,13 @@ function zot_refresh($them, $channel = null, $force = false) { 'alg' => $j['permissions']['alg'] ], $channel['channel_prvkey']); - if($permissions) + if($permissions) { + if(is_array($permissions)) + hz_syslog(print_r($permissions,true)); + $permissions = json_decode($permissions,true); + + } logger('decrypted permissions: ' . print_r($permissions,true), LOGGER_DATA, LOG_DEBUG); } else |