aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-29 08:40:27 +0100
committerGitHub <noreply@github.com>2024-02-29 08:40:27 +0100
commit747c39195350023d78f2ae9a651fe57e6096f12f (patch)
treecbbd6fec261f48cef586cfc1614f3653638a1b6e
parentff9c3b0ee2140e7b2d0866acd7a86339c26670bb (diff)
parent493333036b92f8478bdd9678e23fc58a5f825bfd (diff)
downloadnextcloud-server-747c39195350023d78f2ae9a651fe57e6096f12f.tar.gz
nextcloud-server-747c39195350023d78f2ae9a651fe57e6096f12f.zip
Merge pull request #30957 from rotdrop/bugfix/collaboration-mail-plugin-fix-array-access-resulting-in-type-error
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 44f67f5aeba..1529f78f045 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -149,7 +149,7 @@ class MailPlugin implements ISearchPlugin {
}
if ($exactEmailMatch && $this->shareeEnumerationFullMatch) {
try {
- $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
+ $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
} catch (\InvalidArgumentException $e) {
continue;
}
@@ -174,7 +174,7 @@ class MailPlugin implements ISearchPlugin {
if ($this->shareeEnumeration) {
try {
- $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
+ $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
} catch (\InvalidArgumentException $e) {
continue;
}