Commit 185db864 authored by Franco Fichtner's avatar Franco Fichtner

firewall: don't leak floating rules into interface tabs

parent 4a08d078
...@@ -373,8 +373,8 @@ $( document ).ready(function() { ...@@ -373,8 +373,8 @@ $( document ).ready(function() {
<?php <?php
$interface_has_rules = false; $interface_has_rules = false;
foreach ($a_filter as $i => $filterent): foreach ($a_filter as $i => $filterent):
if ( (isset($filterent['interface']) && $filterent['interface'] == $selected_if) || if ((!isset($filterent['floating']) && $selected_if == $filterent['interface']) ||
(isset($filterent['floating']) && $selected_if == "FloatingRules" )): (isset($filterent['floating']) && $selected_if == 'FloatingRules')):
$interface_has_rules = true; $interface_has_rules = true;
// select icon // select icon
if (!isset($filterent['type']) && empty($filterent['disabled'])) { if (!isset($filterent['type']) && empty($filterent['disabled'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment