diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-06-07 18:13:41 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-06-07 18:13:41 +0200 |
commit | 66265984352850c4045fb5e921ebc1322aa471cd (patch) | |
tree | 14629e50c12bd60d9f2fb5bf444e461d2abb0dde /apps/user_ldap/lib_ldap.php | |
parent | c696f449a223442e8a11b30a6d4004585ceca478 (diff) | |
download | nextcloud-server-66265984352850c4045fb5e921ebc1322aa471cd.tar.gz nextcloud-server-66265984352850c4045fb5e921ebc1322aa471cd.zip |
ldap: enable the destructor
Diffstat (limited to 'apps/user_ldap/lib_ldap.php')
-rw-r--r-- | apps/user_ldap/lib_ldap.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index 8ca5c978b3b..22d464b65a2 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(); } |