foreach issue
This commit is contained in:
parent
03a4ad0e09
commit
a824a87d80
@ -248,11 +248,13 @@ function zot_refresh($them,$channel = null) {
|
|||||||
else
|
else
|
||||||
$permissions = $j['permissions'];
|
$permissions = $j['permissions'];
|
||||||
|
|
||||||
|
if($permissions && is_array($permissions)) {
|
||||||
foreach($permissions as $k => $v) {
|
foreach($permissions as $k => $v) {
|
||||||
if($v) {
|
if($v) {
|
||||||
$their_perms = $their_perms | intval($global_perms[$k][1]);
|
$their_perms = $their_perms | intval($global_perms[$k][1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("select * from abook where abook_xchan = '%s' and abook_channel = %d and not (abook_flags & %d) limit 1",
|
$r = q("select * from abook where abook_xchan = '%s' and abook_channel = %d and not (abook_flags & %d) limit 1",
|
||||||
dbesc($x['hash']),
|
dbesc($x['hash']),
|
||||||
|
Reference in New Issue
Block a user