Skip to content

Commit 584821e

Browse files
enjeckbackportbot[bot]
authored andcommitted
fix: Ensure CLOUD key exists before resolving Cloud ID
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
1 parent 07ee8cf commit 584821e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/private/Collaboration/Collaborators/MailPlugin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
160160

161161
if ($this->shareeEnumeration) {
162162
try {
163+
if (!isset($contact['CLOUD'])) {
164+
continue;
165+
}
163166
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
164167
} catch (\InvalidArgumentException $e) {
165168
continue;

0 commit comments

Comments
 (0)