summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-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)
{