1
0
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:
Jakob Sack 2014-09-02 22:54:54 +02:00
parent 026fb01af3
commit 7d214dbaea

View File

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