summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-31 23:22:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-31 23:22:18 +0000
commit0581660cbed30807ccc7ef288c48d6671e6e6cb0 (patch)
treefa425fdf4189253e5652a7a211f32b015b51129c /usr/local/www/firewall_rules_edit.php
parente4913b90258e462ae9d74f872dfa288874cd9ca4 (diff)
downloadpfsense-0581660cbed30807ccc7ef288c48d6671e6e6cb0.zip
pfsense-0581660cbed30807ccc7ef288c48d6671e6e6cb0.tar.gz
Do not output blank gateways
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php7
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";
}
}
?>
OpenPOWER on IntegriCloud