summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-08 16:53:45 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-08 16:53:45 +0000
commita46e450ce9b791b839d0c05b90924240354b1c35 (patch)
treea3d8df496309eede86fd5525768fad733de6588f /usr/local/www
parent0c331f1e42cc19f2ba9a60499da474acd811cf44 (diff)
downloadpfsense-a46e450ce9b791b839d0c05b90924240354b1c35.zip
pfsense-a46e450ce9b791b839d0c05b90924240354b1c35.tar.gz
Do not spread checking for value accross code. Do it in the function that is supposed to do it.
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/system_advanced_admin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index 3b86537..954b625 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -101,10 +101,10 @@ if ($_POST) {
if($_POST['disableconsolemenu'] == "yes") {
$config['system']['disableconsolemenu'] = true;
- auto_login(true);
+ auto_login();
} else {
unset($config['system']['disableconsolemenu']);
- auto_login(false);
+ auto_login();
}
if ($_POST['noantilockout'] == "yes")
@@ -406,4 +406,4 @@ if ($restart_webgui) {
touch("{$g['tmp_path']}/restart_webgui");
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud