change default so we don't have to check for array existence later
This commit is contained in:
parent
c9db8c6857
commit
e6638b4715
@ -81,7 +81,7 @@ function get_all_perms($uid, $observer_xchan, $internal_use = true) {
|
||||
|
||||
$ret = array();
|
||||
|
||||
$abperms = (($uid && $observer_xchan) ? load_abconfig($uid,$observer_xchan) : false);
|
||||
$abperms = (($uid && $observer_xchan) ? load_abconfig($uid,$observer_xchan) : array());
|
||||
|
||||
foreach($global_perms as $perm_name => $permission) {
|
||||
|
||||
|
Reference in New Issue
Block a user