From 0c8740c1d598a4b37af59bfd3e7e4f0c8a58e513 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 14 May 2012 13:13:08 +0200 Subject: [PATCH] LDAP: and don't forget the else part --- apps/user_ldap/settings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php index e5a989b9c79..835b6a04e22 100755 --- a/apps/user_ldap/settings.php +++ b/apps/user_ldap/settings.php @@ -29,8 +29,9 @@ if ($_POST) { if(isset($_POST[$param])){ if('ldap_agent_password' == $param) { OCP\Config::setAppValue('user_ldap', $param, base64_encode($_POST[$param])); + } else { + OCP\Config::setAppValue('user_ldap', $param, $_POST[$param]); } - OCP\Config::setAppValue('user_ldap', $param, $_POST[$param]); } elseif('ldap_tls' == $param) { // unchecked checkboxes are not included in the post paramters -- 2.39.5