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() {
<?php
$interface_has_rules = false;
foreach ($a_filter as $i => $filterent):
if ( (isset($filterent['interface']) && $filterent['interface'] == $selected_if) ||
(isset($filterent['floating']) && $selected_if == "FloatingRules" )):
if ((!isset($filterent['floating']) && $selected_if == $filterent['interface']) ||
(isset($filterent['floating']) && $selected_if == 'FloatingRules')):
$interface_has_rules = true;
// select icon
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