summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-13 12:56:31 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-06-13 12:56:31 +0000
commita4e9c3d7790e0ea57998da9a1ba82b03054f22d4 (patch)
tree682a213348856da6c88dc0f04fcf61f64ce3681a /roundcubemail/program
parent8ea8d9e73af87c9e04e8bbde3903c666e118076e (diff)
- Support array in 2nd argument of search() when searching by primary key, as in rcube_contacts class
git-svn-id: https://svn.roundcube.net/trunk@4846 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcube_ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_ldap.php b/roundcubemail/program/include/rcube_ldap.php
index 6cab6dbc9..f041eba2c 100644
--- a/roundcubemail/program/include/rcube_ldap.php
+++ b/roundcubemail/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)
{