diff options
author | jim-p <jimp@pfsense.org> | 2011-02-24 13:20:49 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-24 13:20:49 -0500 |
commit | 072bc34c97cb6231c3977559e3faf86a01cc7dac (patch) | |
tree | 764a34e0700846f361bdf26e825fca7aac596281 /usr/local/www | |
parent | bcc85621ee24c9d03625932630dd85659164c1d0 (diff) | |
download | pfsense-072bc34c97cb6231c3977559e3faf86a01cc7dac.zip pfsense-072bc34c97cb6231c3977559e3faf86a01cc7dac.tar.gz |
Correct the test which displays an error if someone chose to save+test but doesn't have an ldap backend. Also, fix a typo.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index d9017c4..f8269ad 100755 --- a/usr/local/www/system_usermanager_settings.php +++ b/usr/local/www/system_usermanager_settings.php @@ -64,10 +64,11 @@ if ($_POST) { if (!$input_errors) { if ($_POST['authmode'] != "local") { $authsrv = auth_get_authserver($_POST['authmode']); - if ($_POST['savetest'] && $authsrv['type'] == "ldap") - $save_and_test = true; - else - $savemsg = gettext("The test was not performed becuase it is supported only for ldap based backends."); + if ($_POST['savetest']) + if ($authsrv['type'] == "ldap") + $save_and_test = true; + else + $savemsg = gettext("The test was not performed because it is supported only for ldap based backends."); } |