From cb0e0777ce832b2a148a1d71a304c7cba5e6564e Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 08 Jun 2015 09:35:33 -0400
Subject: [PATCH] Fix "PHP Fatal error: Using $this when not in object context"

---
 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 aad0090..f492111 100644
--- a/program/lib/Roundcube/rcube_ldap.php
+++ b/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);
                     }
                 });

--
Gitblit v1.9.1