From d8372f84339b29ef05f92d452ec196df32087f4a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 2 Feb 2022 12:44:39 +0000 Subject: more PHP 8.1 deprecated warnings --- include/text.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/text.php b/include/text.php index 3b6039c31..2e5e728a0 100644 --- a/include/text.php +++ b/include/text.php @@ -417,6 +417,9 @@ function xmlify($str) { //$buffer = ''; + if (!$str) + return EMPTY_STR; + if(is_array($str)) { // allow to fall through so we ge a PHP error, as the log statement will @@ -482,6 +485,9 @@ function unxmlify($s) { return $ret; */ + if (!$s) + return EMPTY_STR; + if(is_array($s)) { // allow to fall through so we ge a PHP error, as the log statement will -- cgit v1.2.3