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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue