1
0
mirror of synced 2024-11-22 13:26:10 +03:00

fix converting strings from utf-8

This commit is contained in:
KMityai 2022-04-13 16:59:27 +03:00
parent 559bf79f7b
commit 976d5511fc

View File

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