Skip to content

Commit

Permalink
Merge pull request #30957 from rotdrop/bugfix/collaboration-mail-plug…
Browse files Browse the repository at this point in the history
…in-fix-array-access-resulting-in-type-error
  • Loading branch information
skjnldsv authored Feb 29, 2024
2 parents ff9c3b0 + 4933330 commit 747c391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Collaboration/Collaborators/MailPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
}
if ($exactEmailMatch && $this->shareeEnumerationFullMatch) {
try {
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
} catch (\InvalidArgumentException $e) {
continue;
}
Expand All @@ -174,7 +174,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b

if ($this->shareeEnumeration) {
try {
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
} catch (\InvalidArgumentException $e) {
continue;
}
Expand Down

0 comments on commit 747c391

Please sign in to comment.