]> git.mxchange.org Git - friendica.git/commitdiff
AP: Fix "null" receiver
authorMichael <heluecht@pirati.ca>
Thu, 18 Oct 2018 12:25:57 +0000 (12:25 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 18 Oct 2018 12:25:57 +0000 (12:25 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 9ddcc1d7933c7a3e5b936650903b924533f5a245..7f22e8386b88c80130b5e15432edb522b29405af 100644 (file)
@@ -355,7 +355,7 @@ class Transmitter
 
                        foreach ($receiver_list as $receiver) {
                                $contact = DBA::selectFirst('contact', ['url'], ['id' => $receiver, 'network' => Protocol::ACTIVITYPUB]);
-                               if (empty($contacts[$contact['url']])) {
+                               if (DBA::isResult($contact) && empty($contacts[$contact['url']])) {
                                        $data['cc'][] = $contact['url'];
                                        $contacts[$contact['url']] = $contact['url'];
                                }