From 83b06cdc94c9465340f2d6ea026ef3536d34b243 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 24 Jul 2006 20:40:03 +0000 Subject: [PATCH] Do not check an interface gateway if it is blank. --- usr/local/www/load_balancer_pool_edit.php | 5 +++-- 1 file 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 5f04ba8292..d59aff7b58 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."; } }