Skip to content

Commit

Permalink
[PHP8.1][PHP8.2] Bugfixes (Image Picker)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexplor committed Mar 30, 2023
1 parent 8486cab commit 51388e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Gantry/Component/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function repeatFilter($str, $count)
*/
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);
}

/**
Expand Down

0 comments on commit 51388e0

Please sign in to comment.