diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 6af849cbfe..07bee03f6a 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -325,11 +325,9 @@ if ($_POST) { $input_errors[] = "A valid alias subnet bit count must be specified."; if ($_POST['gateway'] != "none") { $match = false; - foreach($a_gateways as $gateway) { - if(in_array($_POST['gateway'], $gateway)) { + foreach($a_gateways as $gateway) + if(in_array($_POST['gateway'], $gateway)) $match = true; - } - } if(!$match) $input_errors[] = "A valid gateway must be specified."; } @@ -676,69 +674,63 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" ?> - + + - + - - -
- -

-You must apply the changes in order for them to take effect.

Don't forget to adjust the DHCP Server range if needed before applying."));?>
- - + + + + +

+ You must apply the changes in order for them to take effect.

Don't forget to adjust the DHCP Server range if needed before applying."));?>
+ +
General configuration