Merge pull request #11494 from annando/warning

Fix a warning because of an undefined array key
This commit is contained in:
Hypolite Petovan 2022-05-11 12:08:07 -04:00 committed by GitHub
commit fc364df7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;
}