diff options
author | alecpl <alec@alec.pl> | 2011-06-13 12:56:31 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-06-13 12:56:31 +0000 |
commit | 64867411b118f23a03926812625c1fa6837de5ce (patch) | |
tree | 495acf36ecc19d9ad00f8fa6120820bfd32f0dc2 /program | |
parent | c1db483cd5578704ffc49ec98686c0e061db9c50 (diff) |
- Support array in 2nd argument of search() when searching by primary key, as in rcube_contacts class
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_ldap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index 6cab6dbc9..f041eba2c 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -469,7 +469,7 @@ class rcube_ldap extends rcube_addressbook // special treatment for ID-based search if ($fields == 'ID' || $fields == $this->primary_key) { - $ids = explode(',', $value); + $ids = !is_array($value) ? explode(',', $value) : $value; $result = new rcube_result_set(); foreach ($ids as $id) { |