diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 43600470e1ff7..86ad39085a460 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -202,7 +202,8 @@ public function findOne(IUser $user, $shareType, $shareWith) { } } 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; }