Do not create faulty gateway entires with just defaultgw set it breaks logic.

This commit is contained in:
Ermal 2010-03-31 10:33:54 +00:00
parent 79afe4e471
commit 2f678757bf

View File

@ -490,10 +490,8 @@ if ($_POST) {
/* for dynamic interfaces we tack a gateway item onto the array to prevent system
* log messages from appearing. They can also manually add these items */
/* 1st added gateway gets a default bit */
$gateway_item = array();
if(empty($a_gateways)) {
$gateway_item['defaultgw'] = "true";
} else {
if(!empty($a_gateways)) {
$gateway_item = array();
/* check for duplicates */
$skip = false;
foreach($a_gateways as $item) {