From d2890372c198f592d4d306ea62126cabccb34657 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 2 Jul 2015 09:58:05 +0200 Subject: [PATCH] Fix Fatal error after last commit --- program/lib/Roundcube/rcube_ldap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index 9e724cd71..e6d79c13f 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -835,7 +835,9 @@ class rcube_ldap extends rcube_addressbook // map address book fields into ldap attributes $me = $this; $attributes = array(); - array_walk((array) $fields, function($field) use ($me, &$attributes) { + $fields = (array) $fields; + + array_walk($fields, function($field) use ($me, &$attributes) { if ($me->coltypes[$field] && ($attrs = (array)$me->coltypes[$field]['attributes'])) { $attributes = array_merge($attributes, $attrs); }