]> source.dussan.org Git - nextcloud-server.git/commitdiff
ldap: enable the destructor
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 7 Jun 2012 16:13:41 +0000 (18:13 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 7 Jun 2012 16:13:41 +0000 (18:13 +0200)
apps/user_ldap/lib_ldap.php

index 8ca5c978b3b0c83eb1a9a382d30299a828851ab0..22d464b65a21229192580df54783f939cceff51d 100644 (file)
@@ -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();
        }