Index: branches/RC/core/kernel/db/db_event_handler.php =================================================================== diff -u -N -r11387 -r11393 --- branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 11387) +++ branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 11393) @@ -803,11 +803,10 @@ } } - // get default sortings fields - if (array_key_exists('DefaultSorting1Field', $sorting_configs)) { + if ($sorting_configs && isset ($sorting_configs['DefaultSorting1Field'])){ $list_sortings[$sorting_prefix]['Sorting'] = Array( $this->Application->ConfigValue($sorting_configs['DefaultSorting1Field']) => $this->Application->ConfigValue($sorting_configs['DefaultSorting1Dir']), - $this->Application->ConfigValue($sorting_configs['DefaultSorting2Field']) => $this->Application->ConfigValue($sorting_configs['DefaultSorting2Dir']), + $this->Application->ConfigValue($sorting_configs['DefaultSorting2Field']) => $this->Application->ConfigValue($sorting_configs['DefaultSorting2Dir']), ); } @@ -831,8 +830,6 @@ } } - if ( $forced_sorting = getArrayValue($list_sortings, $sorting_prefix, 'ForcedSorting') ) { - if($cur_sort1 != '' && $cur_sort1_dir != '') { $object->AddOrderField($cur_sort1, $cur_sort1_dir);