summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-30 11:13:07 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-10-27 14:25:19 +0200
commit52b1b97c580847da7ed3413c4fd3b867933ade0a (patch)
treed2f1250ff4feb9fa79d36655a7c92097bb832726
parent4eab39f133392d37c171aa11f7e76896365f8454 (diff)
downloadnextcloud-server-52b1b97c580847da7ed3413c4fd3b867933ade0a.tar.gz
nextcloud-server-52b1b97c580847da7ed3413c4fd3b867933ade0a.zip
Fix regression: undesired writes to the DB
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/Connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index 3350dd6a5cd..09fddd4ee74 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/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();