Каталог товаров

[TypeError] 
ksort(): Argument #1 ($array) must be of type array, null given (0)
/home/bitrix/www/local/include/custom_sorting/functions.php:60
#0: ksort(NULL, integer)
	/home/bitrix/www/local/include/custom_sorting/functions.php:60
#1: customSorting(array)
	/home/bitrix/www/local/include/custom_sorting/custom_sorting.php:14
#2: include(string)
	/home/bitrix/www/local/templates/prostroy_default/components/bitrix/catalog/gopro/section.php:383
#3: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:790
#4: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:885
#5: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:776
#6: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:716
#7: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:323
#8: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:607
#9: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:684
#10: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1072
#11: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:1185
#12: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:184
#13: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2
----------