diff --git a/preferences/settings.php b/preferences/settings.php index e7c5090213..c15cedff6b 100755 --- a/preferences/settings.php +++ b/preferences/settings.php @@ -33,14 +33,16 @@ return True; } } + $memberships = $phpgw->accounts->memberships($owner); for ($k=0;$kget_app_list_for_id('run',1,$memberships[$k]['account_id']); - asort($apps_list); if (is_array($apps_list)) { + asort($apps_list); + while($apps = each($apps_list)) { if($apps[1] == 'admin')