summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-24 20:40:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-24 20:40:03 +0000
commit83b06cdc94c9465340f2d6ea026ef3536d34b243 (patch)
treef2680b3590a1e8d3820f7ac9380d1f2ea2e40a0b /usr/local
parent401a52c7d5c2f2e29a43b3e406ae54e27b4618eb (diff)
downloadpfsense-83b06cdc94c9465340f2d6ea026ef3536d34b243.zip
pfsense-83b06cdc94c9465340f2d6ea026ef3536d34b243.tar.gz
Do not check an interface gateway if it is blank.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php
index 5f04ba8..d59aff7 100755
--- a/usr/local/www/load_balancer_pool_edit.php
+++ b/usr/local/www/load_balancer_pool_edit.php
@@ -100,8 +100,9 @@ if ($_POST) {
$ifdescrs['opt' . $j] = "opt" . $j;
}
foreach($ifdescrs as $iface) {
- if($config['interfaces'][$iface]['gateway'] == $_POST['gateway'])
- $input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address.";
+ if($config['interfaces'][$iface]['gateway'] <> "")
+ if($config['interfaces'][$iface]['gateway'] == $_POST['gateway'])
+ $input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address.";
}
}
OpenPOWER on IntegriCloud