Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-06-04 09:45:04 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-06-04 16:05:40 +0300
commit2b0ae6df9f9af260ba64a940078d6a5aa568153b (patch)
treee1f28d6ed4b2410049ea00f3dbdfd25d02ed9120 /lib
parent778c411e6c63e2dab9d8f1fa94754fcba4c31557 (diff)
Fix local users check in contacts menu
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php3
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;
}