From 947c4dc30b415b683dcd107227a0544b8c9ab6aa Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 2 Jul 2015 09:09:24 +0200 Subject: [PATCH] Fix issue when first search() argument is not an array --- program/lib/Roundcube/rcube_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index f492111cc..60f58ec3d 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -836,7 +836,7 @@ class rcube_ldap extends rcube_addressbook // map address book fields into ldap attributes $me = $this; $attributes = array(); - array_walk($fields, function($field) use ($me, &$attributes) { + array_walk((array) $fields, function($field) use ($me, &$attributes) { if ($me->coltypes[$field] && ($attrs = (array)$me->coltypes[$field]['attributes'])) { $attributes = array_merge($attributes, $attrs); }