Merge pull request #7391 from annando/warning

Avoid a warning in Notifier worker
This commit is contained in:
Hypolite Petovan 2019-07-16 16:03:17 -04:00 committed by GitHub
commit 3b1f777d0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -548,7 +548,7 @@ class Notifier
private static function skipDFRN($contact, $item, $cmd) private static function skipDFRN($contact, $item, $cmd)
{ {
// Don't skip when author or owner don't have AP profiles // 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; return false;
} }