]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: and don't forget the else part
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 14 May 2012 11:13:08 +0000 (13:13 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 14 May 2012 11:13:08 +0000 (13:13 +0200)
apps/user_ldap/settings.php

index e5a989b9c79ef8882f5720fb4029512067a37d4f..835b6a04e227dccf5a11d51a0615f6fec6570596 100755 (executable)
@@ -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