From: Michael Date: Thu, 18 Oct 2018 12:25:57 +0000 (+0000) Subject: AP: Fix "null" receiver X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=688174e6c022dba5be6685bbd670481e888bd9c2;p=friendica.git AP: Fix "null" receiver --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 9ddcc1d793..7f22e8386b 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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']; }