diff options
author | friendica <info@friendica.com> | 2013-01-02 01:44:50 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-02 01:44:50 -0800 |
commit | a824a87d80d040bd4d57b0549badef25540081cf (patch) | |
tree | d7a32f9aca478a575ed85b2a63ce052b0648e68e /include/zot.php | |
parent | 03a4ad0e09a8ecafba5de7757ecafb400256f992 (diff) | |
download | volse-hubzilla-a824a87d80d040bd4d57b0549badef25540081cf.tar.gz volse-hubzilla-a824a87d80d040bd4d57b0549badef25540081cf.tar.bz2 volse-hubzilla-a824a87d80d040bd4d57b0549badef25540081cf.zip |
foreach issue
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php index ea2800672..46f0bd397 100644 --- a/include/zot.php +++ b/include/zot.php @@ -248,9 +248,11 @@ function zot_refresh($them,$channel = null) { else $permissions = $j['permissions']; - foreach($permissions as $k => $v) { - if($v) { - $their_perms = $their_perms | intval($global_perms[$k][1]); + if($permissions && is_array($permissions)) { + foreach($permissions as $k => $v) { + if($v) { + $their_perms = $their_perms | intval($global_perms[$k][1]); + } } } |