[TypeError] 
Argument 1 passed to Bitrix\Sale\Discount\Analyzer::canCalculateSeparately() must be of the type array, null given, called in /home/o/osttexru/new_bitrix/public_html/bitrix/modules/sale/lib/internals/discount.php on line 408 (0)
/home/o/osttexru/new_bitrix/public_html/bitrix/modules/sale/lib/discount/analyzer.php:77
#0: Bitrix\Sale\Discount\Analyzer->canCalculateSeparately(NULL)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/sale/lib/internals/discount.php:408
#1: Bitrix\Sale\Internals\DiscountTable::resolveExecuteModeByDiscountId(array)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/sale/lib/internals/discount.php:518
#2: Bitrix\Sale\Internals\DiscountTable::onAfterUpdate(object)
	
#3: call_user_func_array(array, array)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/lib/orm/event.php:151
#4: Bitrix\Main\ORM\Event->send()
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/lib/orm/data/datamanager.php:1121
#5: Bitrix\Main\ORM\Data\DataManager::update(array, array)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/sale/general/discount.php:1206
#6: CAllSaleDiscount::Update(integer, array)
	/home/o/osttexru/new_bitrix/public_html/bitrix/php_interface/init.php:50
#7: Activate_night_discount_by_RG()
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/classes/mysql/agent.php(163) : eval()'d code:1
#8: eval
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/classes/mysql/agent.php:163
#9: CAgent::ExecuteAgents(string)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/classes/mysql/agent.php:40
#10: CAgent::CheckAgents()
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/include.php:264
#11: require_once(string)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/include/prolog_before.php:14
#12: require_once(string)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/include/prolog.php:10
#13: require_once(string)
	/home/o/osttexru/new_bitrix/public_html/bitrix/header.php:1
#14: require(string)
	/home/o/osttexru/new_bitrix/public_html/catalog/index.php:2
#15: include_once(string)
	/home/o/osttexru/new_bitrix/public_html/bitrix/modules/main/include/urlrewrite.php:159
#16: include_once(string)
	/home/o/osttexru/new_bitrix/public_html/bitrix/urlrewrite.php:2