]> git.mxchange.org Git - friendica.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Thu, 16 Jun 2022 17:31:50 +0000 (19:31 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 21 Jun 2022 11:47:37 +0000 (13:47 +0200)
- Uncaught Exception TypeError: "Argument 3 passed to
  Friendica\Protocol\DFRN::createActivity() must be of the type string, null
  given, called ..."

src/Protocol/DFRN.php

index 878b1570b4641737764da7edd1ec1f4ff6c5b0ee..f42d5ed932b231ba108e5ae968cce8ae66667862 100644 (file)
@@ -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);
                }