Aleksander Machniak
2015-07-02 947c4dc30b415b683dcd107227a0544b8c9ab6aa
Fix issue when first search() argument is not an array
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_ldap.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_ldap.php
@@ -836,7 +836,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);
                    }