diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-07 05:00:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-07 05:00:50 +0000 |
commit | b2774343a3e9d0a3533c7b71f42b6595252ed209 (patch) | |
tree | 61a6b767d071944adf55a997bea7b2a65613502c /usr/local/www/firewall_nat.php | |
parent | a46b841a2e33c9d55bd5de62384c52a902d6efcf (diff) | |
download | pfsense-b2774343a3e9d0a3533c7b71f42b6595252ed209.zip pfsense-b2774343a3e9d0a3533c7b71f42b6595252ed209.tar.gz |
If an error occurs during the rule loading, report the error to the user.
Diffstat (limited to 'usr/local/www/firewall_nat.php')
-rwxr-xr-x | usr/local/www/firewall_nat.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php index ee1c83a..11e6058 100755 --- a/usr/local/www/firewall_nat.php +++ b/usr/local/www/firewall_nat.php @@ -50,7 +50,7 @@ if ($_POST) { $retval |= filter_configure(); config_unlock(); } - if($retval == 0) + if(stristr($retval, "error") <> true) $savemsg = get_std_save_message($retval); else $savemsg = $retval; |