From 77c37ff2dbdf50086565ccf903cc370ea4cf4f7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 16 Jun 2022 19:31:50 +0200 Subject: [PATCH] Fixed: - Uncaught Exception TypeError: "Argument 3 passed to Friendica\Protocol\DFRN::createActivity() must be of the type string, null given, called ..." --- src/Protocol/DFRN.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 878b1570b4..f42d5ed932 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -904,12 +904,12 @@ class DFRN XML::addElement($doc, $entry, "activity:object-type", Activity\ObjectType::COMMENT); } - $actobj = self::createActivity($doc, "activity:object", $item['object'], $item['uri-id']); + $actobj = self::createActivity($doc, "activity:object", $item['object'] ?? '', $item['uri-id']); if ($actobj) { $entry->appendChild($actobj); } - $actarg = self::createActivity($doc, "activity:target", $item['target'], $item['uri-id']); + $actarg = self::createActivity($doc, "activity:target", $item['target'] ?? '', $item['uri-id']); if ($actarg) { $entry->appendChild($actarg); } -- 2.39.5