summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-06-04 08:45:04 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-06-04 08:45:04 +0200
commit9f8617a43989b447b49a0ae3730e32e93f68be18 (patch)
tree325a3324eac280d26875c4c8f01bd619027b9654 /lib
parenta00cb2c5d73e598d5800176fafa6209675126b7e (diff)
downloadnextcloud-server-9f8617a43989b447b49a0ae3730e32e93f68be18.tar.gz
nextcloud-server-9f8617a43989b447b49a0ae3730e32e93f68be18.zip
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 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;
}