summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-06-27 09:55:35 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-06-27 09:55:35 (GMT)
commit38e15b20e48359f3aedbc739f93b5856175e0771 (patch)
tree433e1a8b9003bca1282289e1de21788f8c93051e
parentdc72387aa19b6944e4134ff84b5352c1a23ee73c (diff)
downloadiRony-38e15b20e48359f3aedbc739f93b5856175e0771.tar.gz
Don't list groups for Thunderbird as it can't handle them correctly
-rw-r--r--lib/Kolab/CardDAV/ContactsBackend.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Kolab/CardDAV/ContactsBackend.php b/lib/Kolab/CardDAV/ContactsBackend.php
index d72139e..8c6e1c0 100644
--- a/lib/Kolab/CardDAV/ContactsBackend.php
+++ b/lib/Kolab/CardDAV/ContactsBackend.php
@@ -257,7 +257,8 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend
return $cards;
}
- $query = array(array('type','=',array('contact','distribution-list')));
+ $groups_support = $this->useragent != 'thunderbird';
+ $query = array(array('type', '=', $groups_support ? array('contact','distribution-list') : 'contact'));
$cards = array();
if ($storage = $this->get_storage_folder($addressBookId)) {
foreach ((array)$storage->select($query) as $contact) {