]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7391 from annando/warning
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Jul 2019 20:03:17 +0000 (16:03 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2019 20:03:17 +0000 (16:03 -0400)
Avoid a warning in Notifier worker

src/Worker/Notifier.php

index 8a155f0bc05f3e852ec3f59edcc3cb9d8c312f9d..7531a639d79ea45bac71c34d6bc5e66f3b24bb08 100644 (file)
@@ -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;
                }