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:
parent
a839a9ae6e
commit
90d7f1e282
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user