From 70422cd7a227c2479a1889fecb533107e845ea31 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 02 Jul 2015 04:09:39 -0400
Subject: [PATCH] Fix Fatal error after last commit
---
program/lib/Roundcube/rcube_ldap.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php
index 60f58ec..91309c0 100644
--- a/program/lib/Roundcube/rcube_ldap.php
+++ b/program/lib/Roundcube/rcube_ldap.php
@@ -836,7 +836,9 @@
// 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);
}
--
Gitblit v1.9.1