summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-24 13:20:49 -0500
committerjim-p <jimp@pfsense.org>2011-02-24 13:20:49 -0500
commit072bc34c97cb6231c3977559e3faf86a01cc7dac (patch)
tree764a34e0700846f361bdf26e825fca7aac596281 /usr/local/www
parentbcc85621ee24c9d03625932630dd85659164c1d0 (diff)
downloadpfsense-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-xusr/local/www/system_usermanager_settings.php9
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.");
}
OpenPOWER on IntegriCloud