1
0
mirror of synced 2025-01-19 17:31:43 +03:00

добавлена обработка пустых полей

This commit is contained in:
gorokh 2019-11-14 18:06:23 +03:00
parent 202e0ffd17
commit 00e6f1716e

View File

@ -332,6 +332,9 @@ class RestNormalizer
if (is_array($data)) {
foreach ($data as $code => $value) {
if (is_array($value)) {
$value = array_diff($value, array('', NULL));
}
$data[$APPLICATION->ConvertCharset($code, SITE_CHARSET, 'utf-8')] = is_array($value)
? $this->multiConvert($value)
: $APPLICATION->ConvertCharset($value, SITE_CHARSET, 'utf-8');