summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-09 10:44:14 -0400
committerjim-p <jimp@pfsense.org>2012-10-09 10:44:14 -0400
commitbec92ab9e2421c32be92c1c4bde7a93997628de0 (patch)
treeaf4e5b0cac090722749bb44d5e29d9957daf50b5 /usr/local/www/firewall_rules_edit.php
parent170cb2bcbf0def99262f35368a0e474861300306 (diff)
downloadpfsense-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-xusr/local/www/firewall_rules_edit.php5
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");
OpenPOWER on IntegriCloud