Fix local users check in contacts menu

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2018-06-04 08:45:04 +02:00
parent a00cb2c5d7
commit 9f8617a439
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View file

@ -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;
}