From: Roland Häder Date: Wed, 22 Jun 2022 14:19:45 +0000 (+0200) Subject: Fixed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d5441da49a76a7164dd552a20ea2c2895c1b9622;p=friendica.git 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 --- diff --git a/src/Util/XML.php b/src/Util/XML.php index 095d5cad71..7d18277633 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -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;