Skip to content

Commit 33eb9b5

Browse files
committed
ContactsController: Ignore unset READONLY-attribute in addressbook.
Signed-off-by: umgfoin <[email protected]>
1 parent 39eb825 commit 33eb9b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/ContactsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public function searchContacts(string $query = ''): DataResponse {
413413
'URI' => $c['URI'],
414414
'UID' => $c['UID'],
415415
'BOOKID' => $c['addressbook-key'],
416-
'READONLY' => $booksReadOnly[$c['addressbook-key']],
416+
'READONLY' => $booksReadOnly[$c['addressbook-key']] ?? '',
417417
'BOOKURI' => $addressBookUri,
418418
'HAS_PHOTO' => (isset($c['PHOTO'])),
419419
'HAS_PHOTO2' => (isset($c['PHOTO']) && $c['PHOTO'] !== ''),

0 commit comments

Comments
 (0)