From: Michael Date: Thu, 17 Jun 2021 18:48:23 +0000 (+0000) Subject: Fix notice "Undefined index: url in .../src/Protocol/ActivityPub/Transmitter.php... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2b181972174d9e03839ba75950e9f504cfc47f5;p=friendica.git Fix notice "Undefined index: url in .../src/Protocol/ActivityPub/Transmitter.php on line 611" --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 3e6b130a33..8bfc00a862 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -608,7 +608,7 @@ class Transmitter // But comments to forums aren't directed to the followers collection // This rule is only valid when the actor isn't the forum. // The forum needs to transmit their content to their followers. - if (($profile['type'] == 'Group') && ($profile['url'] != $actor_profile['url'])) { + if (($profile['type'] == 'Group') && ($profile['url'] != ($actor_profile['url'] ?? ''))) { $data['to'][] = $profile['url']; } else { $data['cc'][] = $profile['url'];