diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-07 08:01:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-07 08:01:00 +0000 |
commit | ee769c923797dde810229d1336cd44f43cc67008 (patch) | |
tree | 0bc32df97bdcffb612bb8286548061540315e62e /usr/local/www | |
parent | f72692cd4f434920f3751f2df7f76ad78cd0e54a (diff) | |
download | pfsense-ee769c923797dde810229d1336cd44f43cc67008.zip pfsense-ee769c923797dde810229d1336cd44f43cc67008.tar.gz |
Woops. Two functions are using $retval. Insert our rule error detection code between the two.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_advanced.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index 176003e..cc4610e 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -129,13 +129,13 @@ if ($_POST) { if (!file_exists($d_sysrebootreqd_path)) { config_lock(); $retval = filter_configure(); + if(stristr($retval, "error") <> true) + $savemsg = get_std_save_message($retval); + else + $savemsg = $retval; $retval |= interfaces_optional_configure(); config_unlock(); } - if(stristr($retval, "error") <> true) - $savemsg = get_std_save_message($retval); - else - $savemsg = $retval; /* Setup pf rules since the user may have changed the optimization value */ config_lock(); |