Fix search in all fields of the Kolab address book

This commit is contained in:
Thomas Bruederli 2011-05-31 12:04:08 +02:00
parent 912593b9b8
commit ee2ae29feb

View file

@ -244,7 +244,10 @@ class rcube_kolab_contacts extends rcube_addressbook
if ($fields == $this->primary_key) {
return $this->get_record($value);
}
else if ($fields == '*') {
$fields = array_keys($this->coltypes);
}
$value = strtolower($value);
if (!is_array($fields))
$fields = array($fields);