Keep unsorted favorites

This commit is contained in:
Nathan Gray 2014-05-26 23:00:02 +00:00
parent 5aee5a7b44
commit e9d426111a

View File

@ -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;
}