From: Hypolite Petovan Date: Tue, 16 Jul 2019 20:03:17 +0000 (-0400) Subject: Merge pull request #7391 from annando/warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b1f777d0c44ab4f26edbbc2e1f9f59481468145;hp=0c56e75b896cd7015271f33894b50d5dbfb0793c;p=friendica.git Merge pull request #7391 from annando/warning Avoid a warning in Notifier worker --- diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 8a155f0bc0..7531a639d7 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -548,7 +548,7 @@ class Notifier private static function skipDFRN($contact, $item, $cmd) { // Don't skip when author or owner don't have AP profiles - if (empty(APContact::getByURL($item['author-link'], false)) || empty(APContact::getByURL($item['owner-link'], false))) { + if ((!empty($item['author-link']) && empty(APContact::getByURL($item['author-link'], false))) || (!empty($item['owner-link']) && empty(APContact::getByURL($item['owner-link'], false)))) { return false; }