summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 2b4f30c..525e40d 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -1456,18 +1456,14 @@ $i--): ?>
/* add gateway groups to the list */
if (is_array($a_gatewaygroups)) {
foreach($a_gatewaygroups as $gwg_name => $gwg_data) {
- if(($pconfig['ipprotocol'] == "inet46"))
- continue;
- if(($pconfig['ipprotocol'] == "inet6") && ($gwg_data['ipprotocol'] != "inet6"))
- continue;
- if(($pconfig['ipprotocol'] == "inet") && ($gwg_data['ipprotocol'] != "inet"))
- continue;
- if($pconfig['gateway'] == $gwg_name) {
- $selected = " selected=\"selected\"";
- } else {
- $selected = "";
+ if((empty($pconfig['ipprotocol'])) || ($pconfig['ipprotocol'] == $gwg_data['ipprotocol'])) {
+ if($pconfig['gateway'] == $gwg_name) {
+ $selected = " selected=\"selected\"";
+ } else {
+ $selected = "";
+ }
+ echo "<option value=\"{$gwg_name}\" $selected>{$gwg_name}</option>\n";
}
- echo "<option value=\"{$gwg_name}\" $selected>{$gwg_name}</option>\n";
}
}
?>
OpenPOWER on IntegriCloud