summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-06-04 14:58:23 +0200
committerGitHub <noreply@github.com>2018-06-04 14:58:23 +0200
commit8c3ec5f589117dabd66c40ab541a72008b975ed8 (patch)
treeab76f29a4952962bb4965e22eece751cefe245ab /lib
parent367b1be15caf9184fc69571c03e42da6cea38bb7 (diff)
parent9f8617a43989b447b49a0ae3730e32e93f68be18 (diff)
downloadnextcloud-server-8c3ec5f589117dabd66c40ab541a72008b975ed8.tar.gz
nextcloud-server-8c3ec5f589117dabd66c40ab541a72008b975ed8.zip
Merge pull request #9725 from nextcloud/fix/contacts-menu-local-null-check
Fix local users check in contacts menu
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 73319151d6e..bfce7deafa4 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;
}