diff --git a/plugins/kolab_addressbook/rcube_kolab_contacts.php b/plugins/kolab_addressbook/rcube_kolab_contacts.php index 4c87c3c8..2774cd65 100644 --- a/plugins/kolab_addressbook/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/rcube_kolab_contacts.php @@ -251,7 +251,16 @@ class rcube_kolab_contacts extends rcube_addressbook // search by ID if ($fields == $this->primary_key) { - return $this->get_record($value); + $ids = !is_array($value) ? explode(',', $value) : $value; + $result = new rcube_result_set(); + + foreach ($ids as $id) { + if ($rec = $this->get_record($id, true)) { + $result->add($rec); + $result->count++; + } + } + return $result; } else if ($fields == '*') { $fields = array_keys($this->coltypes);