Index: branches/5.1.x/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r13987 -r14027 --- branches/5.1.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 13987) +++ branches/5.1.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 14027) @@ -1,6 +1,6 @@ Application->getUnitOption($event->Prefix, 'ListSortings'); + $list_sortings = $this->Application->getUnitOption($event->Prefix, 'ListSortings', Array ()); $list_sortings['']['ForcedSorting'] = Array ("CurrentSort" => 'asc'); $this->Application->setUnitOption($event->Prefix, 'ListSortings', $list_sortings); } Index: branches/5.1.x/core/units/helpers/list_helper.php =================================================================== diff -u -N -r13159 -r14027 --- branches/5.1.x/core/units/helpers/list_helper.php (.../list_helper.php) (revision 13159) +++ branches/5.1.x/core/units/helpers/list_helper.php (.../list_helper.php) (revision 14027) @@ -113,7 +113,7 @@ */ function getUserSortIndex(&$list) { - $list_sortings = $this->Application->getUnitOption($list->Prefix, 'ListSortings'); + $list_sortings = $this->Application->getUnitOption($list->Prefix, 'ListSortings', Array ()); $sorting_prefix = getArrayValue($list_sortings, $list->Special) ? $list->Special : ''; $user_sorting_start = 0; Index: branches/5.1.x/core/kernel/db/db_tag_processor.php =================================================================== diff -u -N -r13932 -r14027 --- branches/5.1.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 13932) +++ branches/5.1.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 14027) @@ -1,6 +1,6 @@ Application->getUnitOption($this->Prefix, 'ListSortings'); + $list_sortings = $this->Application->getUnitOption($this->Prefix, 'ListSortings', Array ()); $sorting_prefix = getArrayValue($list_sortings, $this->Special) ? $this->Special : ''; $user_sorting_start = 0; Index: branches/5.1.x/core/kernel/db/cat_event_handler.php =================================================================== diff -u -N -r14024 -r14027 --- branches/5.1.x/core/kernel/db/cat_event_handler.php (.../cat_event_handler.php) (revision 14024) +++ branches/5.1.x/core/kernel/db/cat_event_handler.php (.../cat_event_handler.php) (revision 14027) @@ -1,6 +1,6 @@ Application->getUnitOption($event->Prefix, 'ConfigMapping'); if (array_key_exists('ForceEditorPick', $config_mapping) && $this->Application->ConfigValue($config_mapping['ForceEditorPick'])) { - $list_sortings = $this->Application->getUnitOption($event->Prefix, 'ListSortings'); + $list_sortings = $this->Application->getUnitOption($event->Prefix, 'ListSortings', Array ()); $new_forced_sorting = Array ('EditorsPick' => 'DESC'); Index: branches/5.1.x/core/kernel/db/db_event_handler.php =================================================================== diff -u -N -r13931 -r14027 --- branches/5.1.x/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 13931) +++ branches/5.1.x/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 14027) @@ -1,6 +1,6 @@ Application->getUnitOption($event->Prefix, 'ListSortings'); + $list_sortings = $this->Application->getUnitOption($event->Prefix, 'ListSortings', Array ()); $sorting_prefix = array_key_exists($event->Special, $list_sortings) ? $event->Special : ''; $sorting_configs = $this->Application->getUnitOption($event->Prefix, 'ConfigMapping');