diff --git a/admin/editaccount.php b/admin/editaccount.php index 9a5892cc06..9ef0073d7d 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -19,6 +19,16 @@ include("../header.inc.php"); include($phpgw_info["server"]["app_inc"]."/accounts_".$phpgw_info["server"]["account_repository"].".inc.php"); + function is_odd($n) + { + $ln = substr($n,-1); + if ($ln == 1 || $ln == 3 || $ln == 5 || $ln == 7 || $ln == 9) { + return True; + } else { + return False; + } + } + if (! $account_id) { Header("Location: " . $phpgw->link("accounts.php")); } @@ -193,8 +203,8 @@ $i = 0; $sorted_apps = $phpgw_info["apps"]; -// @asort($sorted_apps); -// @reset($sorted_apps); + @asort($sorted_apps); + @reset($sorted_apps); while ($permission = each($phpgw_info["apps"])) { if ($permission[1]["enabled"]) { $perm_display[$i][0] = $permission[0]; @@ -214,6 +224,10 @@ $perm_html .= ">"; $i++; + if ($i == count($perm_display) && is_odd(count($perm_display))) { + $perm_html .= '