summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-02-28 03:29:23 -0800
committerPhil Davis <phil.davis@inf.org>2014-02-28 03:29:23 -0800
commit0344d76eca402dbaba9cb4df9448d333e07544d6 (patch)
tree2ca4283e96a5e17d09e753178a39de1ea073f86f /usr/local
parentb612c49f5eefbbfa4b671a13fdc1f0a70a58faac (diff)
downloadpfsense-0344d76eca402dbaba9cb4df9448d333e07544d6.zip
pfsense-0344d76eca402dbaba9cb4df9448d333e07544d6.tar.gz
Tidy "gateway name - IP" in dropdown list
for 2.1 branch
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 1a80ffa..2b4f30c 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -1450,7 +1450,8 @@ $i--): ?>
} else {
$selected = "";
}
- echo "<option value=\"{$gwname}\" {$selected}>{$gw['name']} - {$gw['gateway']}</option>\n";
+ $gateway_addr_str = empty($gw['gateway']) ? "" : " - " . $gw[gateway];
+ echo "<option value=\"{$gwname}\" {$selected}>{$gw['name']}{$gateway_addr_str}</option>\n";
}
/* add gateway groups to the list */
if (is_array($a_gatewaygroups)) {
OpenPOWER on IntegriCloud