Workaround for Horde bug where groups are listed as contacts

This commit is contained in:
Aleksander Machniak (Kolab Systems) 2011-06-27 14:09:16 +02:00
parent 726932250a
commit d93b7bf46c

View file

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