From 0f206c2acc4fa1c8989dc0bd07d0148ac2c15555 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 6 Jul 2022 11:59:14 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20MQ=20=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/Models/MQ.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/lib/Core/Models/MQ.class.php b/core/lib/Core/Models/MQ.class.php index 3a7d2ec..3106ebc 100644 --- a/core/lib/Core/Models/MQ.class.php +++ b/core/lib/Core/Models/MQ.class.php @@ -106,8 +106,11 @@ * * @return string */ - private function convertFromJson(string $json): array + private function convertFromJson(?string $json): array { + if(empty($json)) { + return []; + } return json_decode($json, true); }