From 9f8617a43989b447b49a0ae3730e32e93f68be18 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 4 Jun 2018 08:45:04 +0200 Subject: [PATCH] Fix local users check in contacts menu Signed-off-by: Christoph Wurst --- lib/private/Contacts/ContactsMenu/ContactsStore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 73319151d6..bfce7deafa 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -200,7 +200,8 @@ class ContactsStore implements IContactsStore { } } if ($shareType === 0 || $shareType === 6) { - if ($contact['UID'] === $shareWith && $contact['isLocalSystemBook'] === true) { + $isLocal = $contact['isLocalSystemBook'] ?? false; + if ($contact['UID'] === $shareWith && $isLocal === true) { $match = $contact; break; }