From d93b7bf46ca4c69b4e899dd68b5e34f6ee0aec3d Mon Sep 17 00:00:00 2001 From: "Aleksander Machniak (Kolab Systems)" Date: Mon, 27 Jun 2011 14:09:16 +0200 Subject: [PATCH] Workaround for Horde bug where groups are listed as contacts --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 3c578e6d..16689cdc 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -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;