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."; } }