update Html.php

htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
This commit is contained in:
gtbu 2024-09-11 17:52:56 +02:00
parent 55e213af23
commit e3f959d4cd

View file

@ -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);
}