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 bb6bad6b3c
commit 097b6b8be9
1 changed files with 2 additions and 1 deletions

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();