From a46e450ce9b791b839d0c05b90924240354b1c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 8 Mar 2010 16:53:45 +0000 Subject: Do not spread checking for value accross code. Do it in the function that is supposed to do it. --- usr/local/www/system_advanced_admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local/www') 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 +?> -- cgit v1.1