diff --git a/admin/inc/class.uiaccounts.inc.php b/admin/inc/class.uiaccounts.inc.php index 79c6585b1f..70e0c108b0 100755 --- a/admin/inc/class.uiaccounts.inc.php +++ b/admin/inc/class.uiaccounts.inc.php @@ -1192,18 +1192,24 @@ } reset($GLOBALS['egw_info']['apps']); $sorted_apps = $GLOBALS['egw_info']['apps']; - @asort($sorted_apps); - @reset($sorted_apps); - while ($permission = each($sorted_apps)) + foreach ($sorted_apps as $key => $values) { + $sortarray[$key] = strtolower($values['title']); + } + unset($key); unset($values); + @asort($sortarray); + @reset($sortarray); + + foreach ($sortarray as $key => $value) { - if ($permission[1]['enabled'] && $permission[1]['status'] != 3) + if ($sorted_apps[$key]['enabled'] && $sorted_apps[$key]['status'] != 3) { $perm_display[] = Array( - $permission[0], - $permission[1]['title'] + $key, + $sorted_apps[$key]['title'] ); } } + unset($key); unset($value); $perm_html = ''.lang('Application').''.lang('enabled').' / '.lang('ACL').''; $perm_html = ''.