From 51388e0a76f863c8a04e8973c52606f8aef86aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Orze=C5=82?= Date: Thu, 30 Mar 2023 17:51:47 +0200 Subject: [PATCH] [PHP8.1][PHP8.2] Bugfixes (Image Picker) --- src/classes/Gantry/Component/Twig/TwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Gantry/Component/Twig/TwigExtension.php b/src/classes/Gantry/Component/Twig/TwigExtension.php index 533fc14cf..5a9c11b35 100644 --- a/src/classes/Gantry/Component/Twig/TwigExtension.php +++ b/src/classes/Gantry/Component/Twig/TwigExtension.php @@ -222,7 +222,7 @@ class TwigExtension extends AbstractExtension implements GlobalsInterface */ public function jsonDecodeFilter($str, $assoc = false, $depth = 512, $options = 0) { - return json_decode(html_entity_decode($str), $assoc, $depth, $options); + return json_decode(html_entity_decode($str ?? ''), $assoc, $depth, $options); } /**