- 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:
Roland Häder 2022-06-22 16:19:45 +02:00
parent 101cd2dd10
commit d5441da49a
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View 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;