foreach issue

This commit is contained in:
friendica 2013-01-02 01:44:50 -08:00
parent 03a4ad0e09
commit a824a87d80

View File

@ -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]);
}
}
}