Добрый день! Подскажите как решить такую проблему: при изменении любого элемента в списке элементов ИБ появляется ошибка "mysqli::real_escape_string(): Argument #1 ($string) must be of type string, array given". Проверил какой массив свойств идет на изменения и заметил что в массиве присутствует с пустым ключом вот такой массив и не понятно откуда он берется.
Код |
---|
array ( '' => array (
'VALUE' =>
array (
'del' => 'Y',
),
),
) |
Код |
---|
mysqli::real_escape_string(): Argument #1 ($string) must be of type string, array given (0)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/modules/main/lib/db/mysqlisqlhelper.php:411
#0: mysqli->real_escape_string(array)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/modules/main/lib/db/mysqlisqlhelper.php:411
#1: Bitrix\Main\DB\MysqliSqlHelper->forSql(array, integer)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/modules/main/classes/general/database.php:704
#2: CAllDatabase->ForSql(array)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/modules/iblock/classes/mysql/iblockelement.php:2507
#3: CIBlockElement::SetPropertyValues(integer, integer, array)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/modules/iblock/classes/mysql/iblockelement.php:1452
#4: CIBlockElement->Update(integer, array, boolean, boolean, boolean)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/modules/iblock/admin/iblock_element_admin.php:1778
#5: require(string)
/home/bitrix/ext_www/new.complex-trade.ru/bitrix/admin/iblock_element_admin.php:1
|