]> source.dussan.org Git - nextcloud-server.git/commitdiff
On clone create a new instance of the Configuration
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 21 Mar 2014 14:27:51 +0000 (15:27 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 21 Mar 2014 14:27:51 +0000 (15:27 +0100)
To avide effects on the original instance of Connection when the clone
is modified, for instance on authentication checks.

apps/user_ldap/lib/connection.php

index b2075748a3bab72226e61c82b8bb5b4563e516c8..08ac4ac626b6a3718eb49fa88c5ee8ef04e366af 100644 (file)
@@ -78,6 +78,8 @@ class Connection extends LDAPUtility {
                //a cloned instance inherits the connection resource. It may use it,
                //but it may not disconnect it
                $this->dontDestruct = true;
+               $this->configuration = new Configuration($this->configPrefix,
+                                                                                                !is_null($this->configID));
        }
 
        public function __get($name) {