Fixed:
- TypeError: "Argument 1 passed to Friendica\Util\XML::escape() must be of the type string, null given, called in src/Util/XML.php line 171
This commit is contained in:
parent
101cd2dd10
commit
d5441da49a
|
@ -168,7 +168,7 @@ class XML
|
||||||
|
|
||||||
foreach ($attributes as $key => $value) {
|
foreach ($attributes as $key => $value) {
|
||||||
$attribute = $doc->createAttribute($key);
|
$attribute = $doc->createAttribute($key);
|
||||||
$attribute->value = self::escape($value);
|
$attribute->value = self::escape($value ?? '');
|
||||||
$element->appendChild($attribute);
|
$element->appendChild($attribute);
|
||||||
}
|
}
|
||||||
return $element;
|
return $element;
|
||||||
|
|
Loading…
Reference in a new issue