diff options
author | Ermal <eri@pfsense.org> | 2010-03-31 10:33:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-31 10:33:54 +0000 |
commit | 2f678757bf78bb9525be8f211da8e6a81f5ccf6e (patch) | |
tree | bc133def51577cf45303a5d99bbe776d7ca94291 /usr/local/www/interfaces.php | |
parent | 79afe4e471c65080d54d0aa064023126509589bc (diff) | |
download | pfsense-2f678757bf78bb9525be8f211da8e6a81f5ccf6e.zip pfsense-2f678757bf78bb9525be8f211da8e6a81f5ccf6e.tar.gz |
Do not create faulty gateway entires with just defaultgw set it breaks logic.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 9cf592e..cb6466f 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -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) { |