diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-04 17:41:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 17:41:28 +0300 |
commit | e656c8e98b833307619ebe329d94ce66ec88390e (patch) | |
tree | 8787ab346070f0920df2da14d748cfe7480af58f | |
parent | 778c411e6c63e2dab9d8f1fa94754fcba4c31557 (diff) | |
parent | e5fb98d9fc0b30cfd66bb89b8c43f3ccd7cafc6a (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.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..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; } |