Check for array content before querying keys in Worker\Notifier
- Address https://github.com/friendica/friendica/issues/11218#issuecomment-1045137358
This commit is contained in:
parent
c03ff7833b
commit
35abf33c05
|
@ -732,7 +732,7 @@ class Notifier
|
|||
// Update the locally stored follower list when we deliver to a forum
|
||||
foreach (Tag::getByURIId($target_item['uri-id'], [Tag::MENTION, Tag::EXCLUSIVE_MENTION]) as $tag) {
|
||||
$target_contact = Contact::getByURL(Strings::normaliseLink($tag['url']), null, [], $uid);
|
||||
if (($target_contact['contact-type'] == Contact::TYPE_COMMUNITY) && $target_contact['manually-approve']) {
|
||||
if ($target_contact && $target_contact['contact-type'] == Contact::TYPE_COMMUNITY && $target_contact['manually-approve']) {
|
||||
Group::updateMembersForForum($target_contact['id']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue