]> git.mxchange.org Git - friendica.git/commitdiff
Avoid a warning
authorMichael <heluecht@pirati.ca>
Tue, 16 Jul 2019 19:58:47 +0000 (19:58 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 16 Jul 2019 19:58:47 +0000 (19:58 +0000)
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;
                }