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',