From fa94f1e17e3cce657adb2a3e9182f4d1c0c545fd Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 28 Feb 2014 03:28:28 -0800 Subject: Tidy "gateway name - IP" in dropdown list While I notice this also, for a plain gateway, the current IP address is also listed in the dropdown list text, like "WAN_DHCP - 10.42.11.1". If there is no IP address currently, it might say "WAN_DHCP - dynamic". But for some DHCP gateways that have not had any non-default manual settings done, it can say "OPT1_DHCP -". This gets rid of the silly-looking "-" --- usr/local/www/firewall_rules_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index e3dd955..daa5d11 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -1468,7 +1468,8 @@ $i--): ?> } else { $selected = ""; } - echo "\n"; + $gateway_addr_str = empty($gw['gateway']) ? "" : " - " . $gw[gateway]; + echo "\n"; } /* add gateway groups to the list */ if (is_array($a_gatewaygroups)) { -- cgit v1.1