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
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-06-04 17:41:28 +0300
committerGitHub <noreply@github.com>2018-06-04 17:41:28 +0300
commite656c8e98b833307619ebe329d94ce66ec88390e (patch)
tree8787ab346070f0920df2da14d748cfe7480af58f
parent778c411e6c63e2dab9d8f1fa94754fcba4c31557 (diff)
parente5fb98d9fc0b30cfd66bb89b8c43f3ccd7cafc6a (diff)
Merge pull request #9732 from nextcloud/stable13-fix-contacts-menu-local-null-check
[stable13] Fix local users check in contacts menu
-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..86ad39085a4 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 = isset($contact['isLocalSystemBook']) ? $contact['isLocalSystemBook'] : false;
+ if ($contact['UID'] === $shareWith && $isLocal === true) {
$match = $contact;
break;
}