summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-13 12:56:31 +0000
committeralecpl <alec@alec.pl>2011-06-13 12:56:31 +0000
commit64867411b118f23a03926812625c1fa6837de5ce (patch)
tree495acf36ecc19d9ad00f8fa6120820bfd32f0dc2 /program
parentc1db483cd5578704ffc49ec98686c0e061db9c50 (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.php2
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)
{