Fix issue when first search() argument is not an array

pull/192/head^2
Aleksander Machniak 9 years ago
parent 8447bae77c
commit 6a8c4fc73b

@ -835,7 +835,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);
}

Loading…
Cancel
Save