Workaround for Horde bug where groups are listed as contacts
This commit is contained in:
parent
726932250a
commit
d93b7bf46c
1 changed files with 4 additions and 0 deletions
|
@ -892,6 +892,10 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
// read contacts
|
||||
$this->contacts = $this->id2uid = array();
|
||||
foreach ((array)$this->contactstorage->getObjects() as $record) {
|
||||
// Because of a bug, sometimes group records are returned
|
||||
if ($record['__type'] == 'Group')
|
||||
continue;
|
||||
|
||||
$contact = $this->_to_rcube_contact($record);
|
||||
$id = $contact['ID'];
|
||||
$this->contacts[$id] = $contact;
|
||||
|
|
Loading…
Add table
Reference in a new issue