瀏覽代碼

Fix local users check in contacts menu

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Christoph Wurst 6 年之前
父節點
當前提交
9f8617a439
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/private/Contacts/ContactsMenu/ContactsStore.php

+ 2 - 1
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;
 				}