[TypeError] 
Argument 1 passed to Bitrix\Sale\Discount\Analyzer::canCalculateSeparately() must be of the type array, null given, called in /var/www/fly/data/bitrix/modules/sale/lib/internals/discount.php on line 410 (0)
/var/www/fly/data/bitrix/modules/sale/lib/discount/analyzer.php:77
#0: Bitrix\Sale\Discount\Analyzer->canCalculateSeparately(NULL)
	/var/www/fly/data/bitrix/modules/sale/lib/internals/discount.php:410
#1: Bitrix\Sale\Internals\DiscountTable::resolveExecuteModeByDiscountId(array)
	/var/www/fly/data/bitrix/modules/sale/lib/internals/discount.php:520
#2: Bitrix\Sale\Internals\DiscountTable::onAfterUpdate(object)
	
#3: call_user_func_array(array, array)
	/var/www/fly/data/bitrix/modules/main/lib/orm/event.php:151
#4: Bitrix\Main\ORM\Event->send()
	/var/www/fly/data/bitrix/modules/main/lib/orm/data/datamanager.php:1121
#5: Bitrix\Main\ORM\Data\DataManager::update(array, array)
	/var/www/fly/data/bitrix/modules/sale/general/discount.php:1206
#6: CAllSaleDiscount::Update(integer, array)
	/var/www/fly/data/bitrix/modules/redsign.daysarticle2/classes/mysql/daysarticle2.php:431
#7: CRSDA2Elements::Update(integer, array, boolean, boolean)
	/var/www/fly/data/bitrix/modules/redsign.daysarticle2/classes/mysql/daysarticle2.php:469
#8: CRSDA2Elements::CheckAutoRenewal()
	/var/www/fly/data/bitrix/modules/redsign.daysarticle2/classes/general/main.php:16
#9: CRSDA2Main::OnBeforePrologElementUpdate()
	/var/www/fly/data/bitrix/modules/main/classes/general/module.php:490
#10: ExecuteModuleEventEx(array)
	/var/www/fly/data/bitrix/modules/main/include.php:568
#11: require_once(string)
	/var/www/fly/data/bitrix/modules/main/include/prolog_before.php:14
#12: require_once(string)
	/var/www/fly/data/bitrix/modules/main/include/prolog.php:10
#13: require_once(string)
	/var/www/fly/data/bitrix/header.php:1
#14: require(string)
	/var/www/fly/data/catalog/index.php:2
#15: include_once(string)
	/var/www/fly/data/bitrix/modules/main/include/urlrewrite.php:159
#16: include_once(string)
	/var/www/fly/data/bitrix/urlrewrite.php:2