From 52b1b97c580847da7ed3413c4fd3b867933ade0a Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 30 Jun 2017 11:13:07 +0200 Subject: [PATCH] Fix regression: undesired writes to the DB Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index 3350dd6a5c..09fddd4ee7 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();