summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-06-07 18:13:41 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-06-07 18:15:11 +0200
commit4beabe23e7d6f5bf3d65d8b593e0e22dac1f8cb3 (patch)
treed4f6d2ab8bbd897acd71f2a3ffb4494aa4ad04c2 /apps
parentd28e0f4d5b0086bf4877e4259b58f6cb4a3e3e30 (diff)
downloadnextcloud-server-4beabe23e7d6f5bf3d65d8b593e0e22dac1f8cb3.tar.gz
nextcloud-server-4beabe23e7d6f5bf3d65d8b593e0e22dac1f8cb3.zip
ldap: enable the destructor
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib_ldap.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index 753243f2c4a..45be86aff81 100644
--- a/apps/user_ldap/lib_ldap.php
+++ b/apps/user_ldap/lib_ldap.php
@@ -52,6 +52,8 @@ class OC_LDAP {
static protected $ldapGroupDisplayName;
static protected $ldapLoginFilter;
+ static protected $__d;
+
/**
* @brief initializes the LDAP backend
* @param $force read the config settings no matter what
@@ -59,6 +61,9 @@ class OC_LDAP {
* initializes the LDAP backend
*/
static public function init($force = false) {
+ if(is_null(self::$__d)) {
+ self::$__d = new OC_LDAP_DESTRUCTOR();
+ }
self::readConfiguration($force);
self::establishConnection();
}