From 47ee6fd009acf27f0aeb88a050cad71a247edd90 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Wed, 11 May 2022 16:01:37 +0000
Subject: [PATCH] Fix a warning because of an undefined array key

---
 src/Model/Contact.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Model/Contact.php b/src/Model/Contact.php
index b0ccfd40bf..4148db33ad 100644
--- a/src/Model/Contact.php
+++ b/src/Model/Contact.php
@@ -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;
 		}
 
-- 
2.39.5