Skip to content

Commit 226600b

Browse files
authored
Merge pull request #43900 from nextcloud/backport/30957/stable28
2 parents e9e027a + 7300db7 commit 226600b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Collaboration/Collaborators/MailPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
140140
}
141141
if ($exactEmailMatch && $this->shareeEnumerationFullMatch) {
142142
try {
143-
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
143+
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
144144
} catch (\InvalidArgumentException $e) {
145145
continue;
146146
}
@@ -165,7 +165,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
165165

166166
if ($this->shareeEnumeration) {
167167
try {
168-
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
168+
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
169169
} catch (\InvalidArgumentException $e) {
170170
continue;
171171
}

0 commit comments

Comments
 (0)