diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-03-04 11:55:52 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-03-04 11:55:52 -0500 |
commit | 6cdffbf1b603f827cca116e2b29716d68543aeb4 (patch) | |
tree | b0a4eb8500b5b9daeb4d212f120436cd536d4915 /program/lib/Roundcube | |
parent | 8e333bcb662b6464f8a6c873cfb8825ac0a11943 (diff) |
Fix "PHP Fatal error: Using $this when not in object context"
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index aad0090f8..f492111cc 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -834,10 +834,10 @@ class rcube_ldap extends rcube_addressbook } 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); } }); |