diff options
author | jim-p <jimp@pfsense.org> | 2012-10-09 10:44:14 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-10-09 10:44:14 -0400 |
commit | bec92ab9e2421c32be92c1c4bde7a93997628de0 (patch) | |
tree | af4e5b0cac090722749bb44d5e29d9957daf50b5 /usr/local/www/firewall_rules_edit.php | |
parent | 170cb2bcbf0def99262f35368a0e474861300306 (diff) | |
download | pfsense-bec92ab9e2421c32be92c1c4bde7a93997628de0.zip pfsense-bec92ab9e2421c32be92c1c4bde7a93997628de0.tar.gz |
Don't offer to apply changes if no changes actually happened.
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 7655d56..5420d19 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -643,8 +643,9 @@ if ($_POST) { filter_rules_sort(); - write_config(); - mark_subsystem_dirty('filter'); + $retval = write_config(); + if ($retval) + mark_subsystem_dirty('filter'); if (isset($_POST['floating'])) header("Location: firewall_rules.php?if=FloatingRules"); |