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); } /**