summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-11 05:48:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-11 05:48:35 +0000
commitdbc64ac0b9aa571c6db1c1e55a0bf9bb1f153711 (patch)
treeb55c7ae05f3ef459991aa8525f0080b26f02911b /usr/local/www/firewall_nat_out.php
parenta6318c60ccd28ca9193cb7dcc828663a7299e02a (diff)
downloadpfsense-dbc64ac0b9aa571c6db1c1e55a0bf9bb1f153711.zip
pfsense-dbc64ac0b9aa571c6db1c1e55a0bf9bb1f153711.tar.gz
use isset
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rwxr-xr-xusr/local/www/firewall_nat_out.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index a345ff6..d3700ef 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -69,7 +69,7 @@ if ($_POST) {
if (isset($_POST['save'])) {
- $was_enabled = $config['nat']['advancedoutbound']['enable'];
+ $was_enabled = isset($config['nat']['advancedoutbound']['enable']);
/* mutually exclusive settings - if user wants advanced NAT, we don't help with IPSec */
if ($_POST['ipsecpassthru'] == true) {
$config['nat']['ipsecpassthru']['enable'] = true;
@@ -83,7 +83,7 @@ if (isset($_POST['save'])) {
$config['nat']['ipsecpassthru']['enable'] = false;
if ($_POST['advancedoutbound'] == false)
$config['nat']['advancedoutbound']['enable'] = false;
- if(!$was_enabled and $_POST['advancedoutbound'] <> "") {
+ if($was_enabled == false and $_POST['advancedoutbound'] <> "") {
/*
* user has enabled advanced outbound nat -- lets automatically create entries
* for all of the interfaces to make life easier on the pip-o-chap
OpenPOWER on IntegriCloud