Browse Source

Fix regression: undesired writes to the DB

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/5568/head
Arthur Schiwon 9 years ago
committed by Morris Jobke
parent
commit
52b1b97c58
No known key found for this signature in database GPG Key ID: FE03C3A163FEDE68
  1. 2
      apps/user_ldap/lib/Connection.php

2
apps/user_ldap/lib/Connection.php

@ -146,7 +146,7 @@ class Connection extends LDAPUtility {
$this->configuration->$name = $value;
$after = $this->configuration->$name;
if($before !== $after) {
if ($this->configID !== '') {
if ($this->configID !== '' && $this->configID !== null) {
$this->configuration->saveConfiguration();
}
$this->validateConfiguration();

Loading…
Cancel
Save