diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-29 08:40:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 08:40:27 +0100 |
commit | 747c39195350023d78f2ae9a651fe57e6096f12f (patch) | |
tree | cbbd6fec261f48cef586cfc1614f3653638a1b6e | |
parent | ff9c3b0ee2140e7b2d0866acd7a86339c26670bb (diff) | |
parent | 493333036b92f8478bdd9678e23fc58a5f825bfd (diff) | |
download | nextcloud-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.php | 4 |
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; } |