From 6a8c4fc73b5b2f5100d24a7a8b8273ffc6baca9c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 02 Jul 2015 03:09:24 -0400 Subject: [PATCH] Fix issue when first search() argument is not an array --- program/lib/Roundcube/rcube_ldap.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index d75c9eb..9e724cd 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -835,7 +835,7 @@ // 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); } -- Gitblit v1.9.1