- Support array in 2nd argument of search() when searching by primary key, as in rcube_contacts class

release-0.6
alecpl 14 years ago
parent c1db483cd5
commit 64867411b1

@ -469,7 +469,7 @@ class rcube_ldap extends rcube_addressbook
// special treatment for ID-based search // special treatment for ID-based search
if ($fields == 'ID' || $fields == $this->primary_key) if ($fields == 'ID' || $fields == $this->primary_key)
{ {
$ids = explode(',', $value); $ids = !is_array($value) ? explode(',', $value) : $value;
$result = new rcube_result_set(); $result = new rcube_result_set();
foreach ($ids as $id) foreach ($ids as $id)
{ {

Loading…
Cancel
Save