Aleksander Machniak
2015-07-02 70422cd7a227c2479a1889fecb533107e845ea31
program/lib/Roundcube/rcube_ldap.php
@@ -834,10 +834,12 @@
            }
            else {
                // map address book fields into ldap attributes
                $me = $this;
                $me         = $this;
                $attributes = array();
                $fields     = (array) $fields;
                array_walk($fields, function($field) use ($me, &$attributes) {
                    if ($this->coltypes[$field] && ($attrs = (array)$this->coltypes[$field]['attributes'])) {
                    if ($me->coltypes[$field] && ($attrs = (array)$me->coltypes[$field]['attributes'])) {
                        $attributes = array_merge($attributes, $attrs);
                    }
                });