mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed my new sorting so that admin will always be on top
This commit is contained in:
parent
3fd860790a
commit
07e38bcecb
@ -892,6 +892,24 @@
|
||||
|
||||
reset($GLOBALS['phpgw_info']['user']['apps']);
|
||||
asort($GLOBALS['phpgw_info']['user']['apps']);
|
||||
|
||||
if(is_array($GLOBALS['phpgw_info']['user']['apps']['admin']))
|
||||
{
|
||||
$newarray['admin'] = $GLOBALS['phpgw_info']['user']['apps']['admin'];
|
||||
while(list($index,$value) = each($GLOBALS['phpgw_info']['user']['apps']))
|
||||
{
|
||||
if($index != 'admin')
|
||||
{
|
||||
$newarray[$index] = $value;
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw_info']['user']['apps'] = $newarray;
|
||||
reset($GLOBALS['phpgw_info']['user']['apps']);
|
||||
}
|
||||
unset($index);
|
||||
unset($value);
|
||||
unset($newarray);
|
||||
|
||||
while ($permission = each($GLOBALS['phpgw_info']['user']['apps']))
|
||||
{
|
||||
if (is_long($permission[0]))
|
||||
|
Loading…
Reference in New Issue
Block a user