]> git.mxchange.org Git - friendica.git/commitdiff
Fix XML deprecation
authorPhilipp <admin@philipp.info>
Wed, 5 Jul 2023 20:02:58 +0000 (22:02 +0200)
committerPhilipp <admin@philipp.info>
Wed, 5 Jul 2023 21:15:36 +0000 (23:15 +0200)
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;