mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
more PHP 8.1 deprecated warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user