Index: kernel/db/cat_event_handler.php =================================================================== --- kernel/db/cat_event_handler.php (revision 14024) +++ kernel/db/cat_event_handler.php (working copy) @@ -2611,7 +2611,7 @@ // add EditorsPick to ForcedSorting if needed $config_mapping = $this->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: kernel/db/db_event_handler.php =================================================================== --- kernel/db/db_event_handler.php (revision 13936) +++ kernel/db/db_event_handler.php (working copy) @@ -1001,7 +1001,7 @@ } } - $list_sortings = $this->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'); Index: kernel/db/db_tag_processor.php =================================================================== --- kernel/db/db_tag_processor.php (revision 13936) +++ kernel/db/db_tag_processor.php (working copy) @@ -1473,7 +1473,7 @@ */ function getUserSortIndex() { - $list_sortings = $this->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: units/categories/categories_event_handler.php =================================================================== --- units/categories/categories_event_handler.php (revision 13987) +++ units/categories/categories_event_handler.php (working copy) @@ -1923,7 +1923,7 @@ } else { // sort by parent path on Front-End only - $list_sortings = $this->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: units/helpers/list_helper.php =================================================================== --- units/helpers/list_helper.php (revision 13936) +++ units/helpers/list_helper.php (working copy) @@ -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;