From ee769c923797dde810229d1336cd44f43cc67008 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 7 Feb 2005 08:01:00 +0000 Subject: Woops. Two functions are using $retval. Insert our rule error detection code between the two. --- usr/local/www/system_advanced.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr') 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(); -- cgit v1.1