From e3f959d4cd85bb8368133460fe8a9601d1362b64 Mon Sep 17 00:00:00 2001 From: gtbu Date: Wed, 11 Sep 2024 17:52:56 +0200 Subject: [PATCH] update Html.php htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated --- include/tool/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tool/HTML.php b/include/tool/HTML.php index 6593f10..7a6b2fc 100644 --- a/include/tool/HTML.php +++ b/include/tool/HTML.php @@ -76,7 +76,7 @@ class HTML{ } public static function Chars($str){ - return htmlspecialchars($str, ENT_COMPAT, 'UTF-8', false); + return htmlspecialchars($str ?? '', ENT_COMPAT, 'UTF-8', false); }