diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-24 20:40:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-24 20:40:03 +0000 |
commit | 83b06cdc94c9465340f2d6ea026ef3536d34b243 (patch) | |
tree | f2680b3590a1e8d3820f7ac9380d1f2ea2e40a0b | |
parent | 401a52c7d5c2f2e29a43b3e406ae54e27b4618eb (diff) | |
download | pfsense-83b06cdc94c9465340f2d6ea026ef3536d34b243.zip pfsense-83b06cdc94c9465340f2d6ea026ef3536d34b243.tar.gz |
Do not check an interface gateway if it is blank.
-rwxr-xr-x | usr/local/www/load_balancer_pool_edit.php | 5 |
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."; } } |