summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Connection.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-11-09 09:26:51 +0100
committerGitHub <noreply@github.com>2017-11-09 09:26:51 +0100
commit2bfa1ce5c3a23468ef2830680062869c65094b74 (patch)
treee94383026953d8307d2f3266caf17801fcd8665c /apps/user_ldap/lib/Connection.php
parentaa525d89e889216d17185a6934699a8f8ba7aa91 (diff)
parent7b0868ddac20c020b31310471c06b9a3a78ed5bd (diff)
downloadnextcloud-server-2bfa1ce5c3a23468ef2830680062869c65094b74.tar.gz
nextcloud-server-2bfa1ce5c3a23468ef2830680062869c65094b74.zip
Merge pull request #5568 from nextcloud/ldap-agent-credentials-safe
Ldap agent credentials save
Diffstat (limited to 'apps/user_ldap/lib/Connection.php')
-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 0f10874bc2f..79d66189c27 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -150,7 +150,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();