]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
Merge remote-tracking branch 'upstream/2022.09-rc' into quote-uri-id
[friendica.git] / src / Model / APContact.php
index 0448765d0829b6a0e6d28e7d011b8e1074ace055..043f33c313352c940f8e2817f3bb3a860c035b37 100644 (file)
@@ -577,15 +577,15 @@ class APContact
         */
        public static function isRelay(array $apcontact): bool
        {
-               if ($apcontact['nick'] != 'relay') {
+               if (empty($apcontact['nick']) || $apcontact['nick'] != 'relay') {
                        return false;
                }
 
-               if ($apcontact['type'] == 'Application') {
+               if (!empty($apcontact['type']) && $apcontact['type'] == 'Application') {
                        return true;
                }
 
-               if (in_array($apcontact['type'], ['Group', 'Service']) && is_null($apcontact['outbox'])) {
+               if (!empty($apcontact['type']) && in_array($apcontact['type'], ['Group', 'Service']) && is_null($apcontact['outbox'])) {
                        return true;
                }