From: Michael Date: Tue, 21 Jul 2020 19:55:24 +0000 (+0000) Subject: Fix notice "Undefined index: gravity in /src/Protocol/ActivityPub/Processor.php on... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5545bafdee61232e9afa0f7e257e8f7a61627bb8;p=friendica.git Fix notice "Undefined index: gravity in /src/Protocol/ActivityPub/Processor.php on line 556" --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 241907f623..db1492aa1d 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -514,6 +514,10 @@ class Processor */ public static function postItem(array $activity, array $item) { + if (empty($item)) { + return; + } + $stored = false; foreach ($activity['receiver'] as $receiver) {