From 61b277aa9c578a9a69e552f593a8bde421b811bc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 23 Jun 2025 17:16:56 +0000 Subject: [PATCH] fwhosts.cgi: Don't show anything if a host/group is unused Signed-off-by: Michael Tremer --- html/cgi-bin/fwhosts.cgi | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 4e9c7f04d..69970a840 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -1956,8 +1956,6 @@ END my $htmlparttouse=""; if ($netusedin) { $htmlparttouse = ""; - } else { - $htmlparttouse = ""; } print"
$customnetwork{$key}[0]".&getcolor($colnet)."$customnetwork{$key}[3]$netcount x$htmlparttouse"; print<$customhost{$key}[0]".&getcolor($ip)."$customhost{$key}[3]$hostcount x$htmlparttouse"; print<"; - } else { - print ""; } if($netgrpcount == '0') { @@ -2344,8 +2338,6 @@ sub viewtablelocationgrp print "$Lang::tr{'used'}: $locationgrpcount x "; if ($locationusedin) { print ""; - } else { - print ""; } # Only display delete icon, if the group is not used by a firewall rule. if($locationgrpcount == '0') { @@ -2492,8 +2484,6 @@ END my $htmlparttouse=""; if ($serviceusedin) { $htmlparttouse=""; - } else { - $htmlparttouse=""; } if($customservice{$key}[3] eq 'All ICMP-Types'){print $Lang::tr{'fwdfw all icmp'};} elsif($customservice{$key}[3] ne 'BLANK'){print $customservice{$key}[3];} @@ -2574,8 +2564,6 @@ sub viewtableservicegrp my $srvgrpusedin=&getsrvusedin($customservicegrp{$key}[0]); if ($srvgrpusedin) { print ""; - } else { - print ""; } if($grpcount == '0') { -- 2.47.3