summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-07 08:01:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-07 08:01:00 +0000
commitee769c923797dde810229d1336cd44f43cc67008 (patch)
tree0bc32df97bdcffb612bb8286548061540315e62e /usr/local/www/system_advanced.php
parentf72692cd4f434920f3751f2df7f76ad78cd0e54a (diff)
downloadpfsense-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/system_advanced.php')
-rwxr-xr-xusr/local/www/system_advanced.php8
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();
OpenPOWER on IntegriCloud