Skip to content

Commit 10824a4

Browse files
committed
fix(contacts): only accept single entry uid
Signed-off-by: Maxence Lange <[email protected]>
1 parent c855ccf commit 10824a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Contacts/ContactsMenu/ContactsStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function findOne(IUser $user, int $shareType, string $shareWith): ?IEntry
328328
private function contactArrayToEntry(array $contact): Entry {
329329
$entry = new Entry();
330330

331-
if (!empty($contact['UID'])) {
331+
if (!empty($contact['UID']) && is_string($contact['UID'])) {
332332
$uid = $contact['UID'];
333333
$entry->setId($uid);
334334
$entry->setProperty('isUser', false);

0 commit comments

Comments
 (0)