diff options
author | Phil Davis <phil.davis@inf.org> | 2014-02-28 03:29:23 -0800 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-02-28 03:29:23 -0800 |
commit | 0344d76eca402dbaba9cb4df9448d333e07544d6 (patch) | |
tree | 2ca4283e96a5e17d09e753178a39de1ea073f86f /usr/local | |
parent | b612c49f5eefbbfa4b671a13fdc1f0a70a58faac (diff) | |
download | pfsense-0344d76eca402dbaba9cb4df9448d333e07544d6.zip pfsense-0344d76eca402dbaba9cb4df9448d333e07544d6.tar.gz |
Tidy "gateway name - IP" in dropdown list
for 2.1 branch
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 3 |
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)) { |