htmlspecialcharsbx($parsed['error']['error_code']), '%msg%' => htmlspecialcharsbx($parsed['error']['error_msg']), ] ); } $errorMessage = Loc::getMessage('SEO_RETARGETING_SERVICE_RESPONSE_VKONTAKTE_ERROR') . ': ' . $errorMessage; $this->addError(new Error($errorMessage, $parsed['error']['error_code'])); } $result = []; if ($parsed['response']) { $result = $parsed['response']; } elseif(!isset($parsed['error'])) { $result = $parsed; } $this->setData(is_array($result) ? $result : [$result]); } }