diff --git a/phpgwapi/inc/class.egw_session_files.inc.php b/phpgwapi/inc/class.egw_session_files.inc.php index da00c1ac2f..dca462c621 100644 --- a/phpgwapi/inc/class.egw_session_files.inc.php +++ b/phpgwapi/inc/class.egw_session_files.inc.php @@ -127,6 +127,7 @@ class egw_session_files if(!$all_no_sort) { + if(!$order) $order = 'session_dla'; uasort($values,create_function('$a,$b','return '.(!strcasecmp($sort,'ASC') ? '' : '-').'strcasecmp($a['.$order.'],$b['.$order.']);')); return array_slice($values,(int)$start,$maxmatchs); }