diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-31 23:22:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-31 23:22:18 +0000 |
commit | 0581660cbed30807ccc7ef288c48d6671e6e6cb0 (patch) | |
tree | fa425fdf4189253e5652a7a211f32b015b51129c /usr/local/www/firewall_rules_edit.php | |
parent | e4913b90258e462ae9d74f872dfa288874cd9ca4 (diff) | |
download | pfsense-0581660cbed30807ccc7ef288c48d6671e6e6cb0.zip pfsense-0581660cbed30807ccc7ef288c48d6671e6e6cb0.tar.gz |
Do not output blank gateways
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 35e8d1e..e1655fb 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -770,6 +770,8 @@ include("head.inc"); <select name='gateway'> <?php foreach($gateways as $gw) { + if($gw == "") + continue; if($gw == $pconfig['gateway']) { $selected = " SELECTED"; } else { @@ -783,6 +785,8 @@ include("head.inc"); } if(is_array($config['load_balancer']['lbpool'])) { foreach($config['load_balancer']['lbpool'] as $lb) { + if($lb['name'] == "") + continue; if($pconfig['gateway'] == $lb['name']) { echo "<option value=\"{$lb['name']}\" SELECTED>{$lb['name']}</option>\n"; } else { @@ -798,7 +802,8 @@ include("head.inc"); } else { $selected = ""; } - echo "<option value=\"opt{$i}\" {$selected}>OPT{$i} - {$descr}</option>\n"; + if($descr <> "") + echo "<option value=\"opt{$i}\" {$selected}>OPT{$i} - {$descr}</option>\n"; } } ?> |