master
Jean-Christian Paul Denis 2023-01-08 00:36:13 +01:00
parent 9924e82e51
commit 78ac10c266
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ declare(strict_types=1);
namespace Dotclear\Plugin\whiteListCom; namespace Dotclear\Plugin\whiteListCom;
/* dotclear ns */ /* dotclear ns */
use dcBlog;
use dcCore; use dcCore;
use dcUtils; use dcUtils;
@ -168,7 +169,7 @@ class Core
public static function decode($x) public static function decode($x)
{ {
$y = json_decode($x); $y = json_decode($x, true);
return is_array($y) ? $y : []; return is_array($y) ? $y : [];
} }