1
0
mirror of synced 2025-02-16 15:03:14 +03:00

Исправление конвертирования строк из utf-8

This commit is contained in:
Alex Lushpai 2022-04-18 16:20:03 +03:00 committed by GitHub
commit bec3ede2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,6 +273,10 @@ class RCrmActions
*/
public static function fromJSON($str)
{
if ($str === null) {
return '';
}
/** @var \Intaro\RetailCrm\Service\Utils $utils */
$utils = ServiceLocator::getOrCreate(\Intaro\RetailCrm\Service\Utils::class);
return $utils->fromUTF8($str);