LDAP: only read config from database, if configID is given. Not what we want to do when on-the-fly-testing settings from the admin page

This commit is contained in:
Arthur Schiwon 2013-12-13 18:01:42 +01:00
parent 1e407482be
commit 3d81009347

View file

@ -50,7 +50,8 @@ class Connection extends LDAPUtility {
parent::__construct($ldap);
$this->configPrefix = $configPrefix;
$this->configID = $configID;
$this->configuration = new Configuration($configPrefix);
$this->configuration = new Configuration($configPrefix,
!is_null($configID));
$memcache = new \OC\Memcache\Factory();
if($memcache->isAvailable()) {
$this->cache = $memcache->create();