From 78ac10c26621a8796d91a970ce617e008ed744b2 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 8 Jan 2023 00:36:13 +0100 Subject: [PATCH] oops --- inc/Core.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/Core.php b/inc/Core.php index ac39578..b2f487c 100644 --- a/inc/Core.php +++ b/inc/Core.php @@ -15,6 +15,7 @@ declare(strict_types=1); namespace Dotclear\Plugin\whiteListCom; /* dotclear ns */ +use dcBlog; use dcCore; use dcUtils; @@ -168,7 +169,7 @@ class Core public static function decode($x) { - $y = json_decode($x); + $y = json_decode($x, true); return is_array($y) ? $y : []; }