Aleksander Machniak
2015-03-04 6cdffbf1b603f827cca116e2b29716d68543aeb4
Fix "PHP Fatal error: Using $this when not in object context"
1 files modified
4 ■■■■ changed files
program/lib/Roundcube/rcube_ldap.php 4 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_ldap.php
@@ -834,10 +834,10 @@
            }
            else {
                // map address book fields into ldap attributes
                $me = $this;
                $me         = $this;
                $attributes = array();
                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);
                    }
                });