]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/XML.php
Converted multiple single-comment (//) to multi-line comment block (/* */)
[friendica.git] / src / Util / XML.php
index 095d5cad71d22ef9758ce4d12e3032e0276c1658..7d1827763356305350d564ff6deeb3df24bd00b8 100644 (file)
@@ -168,7 +168,7 @@ class XML
 
                foreach ($attributes as $key => $value) {
                        $attribute = $doc->createAttribute($key);
-                       $attribute->value = self::escape($value);
+                       $attribute->value = self::escape($value ?? '');
                        $element->appendChild($attribute);
                }
                return $element;