Do not check an interface gateway if it is blank.

This commit is contained in:
Scott Ullrich 2006-07-24 20:40:03 +00:00
parent 401a52c7d5
commit 83b06cdc94

View File

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