]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/XML.php
Preparations for a moderator role
[friendica.git] / src / Util / XML.php
index e5fa4009f3dcf23936715ec0d1aea6b36bcf83b9..c35f19b8a8e584619b4b14ca9ea8349c09d1da0e 100644 (file)
@@ -118,7 +118,7 @@ class XML
                                                $namespace = null;
                                        }
 
-                                       $element->addAttribute($attr_key, $attr_value, $namespace);
+                                       $element->addAttribute($attr_key, $attr_value ?? '', $namespace);
                                }
 
                                continue;