diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-06-04 08:45:04 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-06-04 15:05:40 +0200 |
commit | 2b0ae6df9f9af260ba64a940078d6a5aa568153b (patch) | |
tree | e1f28d6ed4b2410049ea00f3dbdfd25d02ed9120 /lib/private | |
parent | 778c411e6c63e2dab9d8f1fa94754fcba4c31557 (diff) | |
download | nextcloud-server-2b0ae6df9f9af260ba64a940078d6a5aa568153b.tar.gz nextcloud-server-2b0ae6df9f9af260ba64a940078d6a5aa568153b.zip |
Fix local users check in contacts menu
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Contacts/ContactsMenu/ContactsStore.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 43600470e1f..930652d6dad 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -202,7 +202,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; } |