mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Keep unsorted favorites
This commit is contained in:
parent
5aee5a7b44
commit
e9d426111a
@ -150,6 +150,7 @@ class egw_favorites
|
||||
// Look through all preferences & pull out favorites
|
||||
foreach($GLOBALS['egw_info']['user']['preferences'][$app] as $pref_name => $pref)
|
||||
{
|
||||
error_log($pref_name .' => ' . array2string($pref));
|
||||
if(strpos($pref_name, $pref_prefix) === 0)
|
||||
{
|
||||
if(!is_array($pref)) // old favorite
|
||||
@ -175,7 +176,7 @@ class egw_favorites
|
||||
{
|
||||
$sorted_list[$key] = $favorites[$key];
|
||||
}
|
||||
$favorites = $sorted_list;
|
||||
$favorites = array_merge($sorted_list,$favorites);
|
||||
}
|
||||
return $favorites;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user