diff options
author | Warren Baker <warren@decoy.co.za> | 2012-02-23 10:35:03 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-02-23 10:35:03 +0200 |
commit | 4b0e8c916b9dac14ee5131725ae503eb15369084 (patch) | |
tree | 7873b5d74d5195a0df701fa23fb9dab0decbb46c /usr/local/www/system_advanced_admin.php | |
parent | a2263f0cd8b655922ea8a66b3b93a6062539ea99 (diff) | |
download | pfsense-4b0e8c916b9dac14ee5131725ae503eb15369084.zip pfsense-4b0e8c916b9dac14ee5131725ae503eb15369084.tar.gz |
No need for extra function and touching of file, just set the value and use grep from XML to determine to beep or not
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r-- | usr/local/www/system_advanced_admin.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 88f022a..c726979 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -142,13 +142,10 @@ if ($_POST) { auto_login(); } - if($_POST['disablebeep'] == "yes") { + if($_POST['disablebeep'] == "yes") $config['system']['disablebeep'] = true; - setup_beep(); - } else { + else unset($config['system']['disablebeep']); - setup_beep(); - } if ($_POST['noantilockout'] == "yes") $config['system']['webgui']['noantilockout'] = true; |