From: Arthur Schiwon Date: Thu, 7 Jun 2012 16:13:41 +0000 (+0200) Subject: ldap: enable the destructor X-Git-Tag: v4.5.0beta1~74^2~423^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=66265984352850c4045fb5e921ebc1322aa471cd;p=nextcloud-server.git ldap: enable the destructor --- 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(); }