This commit is contained in:
Jean-Christian Denis 2023-01-08 00:36:13 +01:00
parent 9924e82e51
commit 78ac10c266
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -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 : [];
}