diff options
author | Mario <mario@mariovavti.com> | 2022-02-02 12:44:39 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-02 12:44:39 +0000 |
commit | d8372f84339b29ef05f92d452ec196df32087f4a (patch) | |
tree | 64254b6635d2aca91b6370f16640f7761eb0c323 /include | |
parent | 2a15d2c42154eabbd6feea946f6e932969473ff1 (diff) | |
download | volse-hubzilla-d8372f84339b29ef05f92d452ec196df32087f4a.tar.gz volse-hubzilla-d8372f84339b29ef05f92d452ec196df32087f4a.tar.bz2 volse-hubzilla-d8372f84339b29ef05f92d452ec196df32087f4a.zip |
more PHP 8.1 deprecated warnings
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 |