change default so we don't have to check for array existence later

This commit is contained in:
redmatrix 2016-07-09 21:23:00 -07:00
parent c9db8c6857
commit e6638b4715

View File

@ -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) {