1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Shared address books was shown twice

This commit is contained in:
Thomas Tanghus 2014-04-22 15:39:44 +02:00
parent a839a9ae6e
commit 90d7f1e282

View File

@ -47,15 +47,12 @@ class Shared extends Database {
foreach ($maybeSharedAddressBook as $sharedAddressbook) {
if (isset($sharedAddressbook['id'])) {
$this->addressBooks[] = $this->getAddressBook($sharedAddressbook['id']);
$this->addressBooks[$sharedAddressbook['id']] = $sharedAddressbook;
$this->addressBooks[$sharedAddressbook['id']]['backend'] = $this->name;
}
}
foreach ($this->addressBooks as &$addressBook) {
$addressBook['backend'] = $this->name;
}
return $this->addressBooks;
}