]> git.mxchange.org Git - friendica.git/commitdiff
Fix a warning because of an undefined array key
authorMichael <heluecht@pirati.ca>
Wed, 11 May 2022 16:01:37 +0000 (16:01 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 11 May 2022 16:01:37 +0000 (16:01 +0000)
src/Model/Contact.php

index b0ccfd40bfa6a2cf7cec8cfe9f00ec05320924c7..4148db33adbf13a66965bed183af82893122eecd 100644 (file)
@@ -1700,7 +1700,7 @@ class Contact
                        }
                }
 
-               if (Network::isLocalLink($contact['url']) && !empty($contact['avatar'])) {
+               if (!empty($contact['avatar']) && !empty($contact['url']) && Network::isLocalLink($contact['url'])) {
                        return $contact;
                }