1
0
mirror of synced 2024-11-29 00:36:07 +03:00

Merge pull request #88 from Evgeniy-Goroh/master

добавлена обработка пустых полей
This commit is contained in:
Ilyas Salikhov 2019-11-20 16:47:17 +03:00 committed by GitHub
commit 0ca164a825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');