mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Fix creation of default address book
This commit is contained in:
parent
026fb01af3
commit
7d214dbaea
@ -123,7 +123,7 @@ class Database extends AbstractBackend {
|
||||
$id = $this->createAddressBook(array('displayname' => $l10n->t('Contacts')));
|
||||
if ($id !== false) {
|
||||
$addressBook = $this->getAddressBook($id);
|
||||
$this->addressBooks = array($addressBook);
|
||||
$this->addressBooks[$id] = $addressBook;
|
||||
} else {
|
||||
\OCP\Util::writeLog(
|
||||
'contacts',
|
||||
@ -466,7 +466,7 @@ class Database extends AbstractBackend {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return $cards;
|
||||
}
|
||||
|
||||
@ -1052,5 +1052,5 @@ class Database extends AbstractBackend {
|
||||
public function getSearchProvider($addressbook) {
|
||||
return new \OCA\Contacts\AddressbookProvider($addressbook);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user