From a19cf4e2f401d36b308aebc8bec0598f7a5108ec Mon Sep 17 00:00:00 2001 From: g7sim <60353863+g7sim@users.noreply.github.com> Date: Sun, 28 May 2023 20:23:44 +0200 Subject: [PATCH] Null deprecation htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated --- include/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/common.php b/include/common.php index ad2fcd3..423b486 100644 --- a/include/common.php +++ b/include/common.php @@ -667,7 +667,7 @@ function pre($mixed){ $mixed = 'false'; } default: - $output = '(' . $type . ')' . htmlspecialchars($mixed, ENT_COMPAT, 'UTF-8', false) . ''; + $output = '(' . $type . ')' . htmlspecialchars($mixed ?? "", ENT_COMPAT, 'UTF-8', false) . ''; break; }