diff options
author | Phil Davis <phil.davis@inf.org> | 2016-04-15 13:45:32 +0545 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-15 08:05:50 -0400 |
commit | 0427acce8e5c813357d4c77d931986c3a933db20 (patch) | |
tree | 10bcc78c19d444fc083607e0f0bd7bdb7973fd42 /src/usr/local/www/system_advanced_firewall.php | |
parent | 31b14a700415915d323bde25e82c4510368b5390 (diff) | |
download | pfsense-0427acce8e5c813357d4c77d931986c3a933db20.zip pfsense-0427acce8e5c813357d4c77d931986c3a933db20.tar.gz |
Fix #6162 saving of bogons update frequency
Another easy fix of a "dumb bug".
(cherry picked from commit d1acd5bb5723e66bc5871bdf4335208253f5a4bd)
Diffstat (limited to 'src/usr/local/www/system_advanced_firewall.php')
-rw-r--r-- | src/usr/local/www/system_advanced_firewall.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/system_advanced_firewall.php b/src/usr/local/www/system_advanced_firewall.php index df464c0..168ac93 100644 --- a/src/usr/local/www/system_advanced_firewall.php +++ b/src/usr/local/www/system_advanced_firewall.php @@ -365,8 +365,8 @@ if ($_POST) { unset($config['system']['tftpinterface']); } - if ($_POST['update-frequency'] != $config['system']['bogons']['interval']) { - switch ($_POST['update-frequency']) { + if ($_POST['bogonsinterval'] != $config['system']['bogons']['interval']) { + switch ($_POST['bogonsinterval']) { case 'daily': install_cron_job("/usr/bin/nice -n20 /etc/rc.update_bogons.sh", true, "1", "3", "*", "*", "*"); break; @@ -378,7 +378,7 @@ if ($_POST) { default: install_cron_job("/usr/bin/nice -n20 /etc/rc.update_bogons.sh", true, "1", "3", "1", "*", "*"); } - $config['system']['bogons']['interval'] = $_POST['update-frequency']; + $config['system']['bogons']['interval'] = $_POST['bogonsinterval']; } write_config(); @@ -768,4 +768,4 @@ events.push(function() { </script> <?php include("foot.inc"); -?>
\ No newline at end of file +?> |