From: Philipp Date: Wed, 5 Jul 2023 20:02:58 +0000 (+0200) Subject: Fix XML deprecation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=00cd346255fd5b1aa758a362c2ae2cfb2522e961;p=friendica.git Fix XML deprecation --- diff --git a/src/Util/XML.php b/src/Util/XML.php index e5fa4009f3..c35f19b8a8 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -118,7 +118,7 @@ class XML $namespace = null; } - $element->addAttribute($attr_key, $attr_value, $namespace); + $element->addAttribute($attr_key, $attr_value ?? '', $namespace); } continue;