From 0c2cf9e2145737cc6af6f6147f322d9ce60465f6 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Wed, 14 Aug 2013 09:06:38 +0200 Subject: [PATCH] Forward Firewall: BUGFIX: when having more than 10 hosts/networks in a firewall-groups group, the table was not shown correctly --- html/cgi-bin/fwhosts.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 92c2d38b94..482ccabf5b 100755 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -1494,7 +1494,7 @@ sub viewtablegrp { print "
$Lang::tr{'fwhost err emptytable'}"; }else{ - foreach my $key (sort { ncmp($customgrp{$a}[0],$customgrp{$b}[0]) } sort { ncmp ($customgrp{$a}[2],$customgrp{$b}[2]) } keys %customgrp){ + foreach my $key (sort { ncmp($customgrp{$a}[0],$customgrp{$b}[0]) } sort { ncmp($customgrp{$a}[2],$customgrp{$b}[2]) } keys %customgrp){ $count++; if ($helper ne $customgrp{$key}[0]){ $delflag='0'; @@ -1511,7 +1511,7 @@ sub viewtablegrp if ($customgrp{$key}[2] eq "none"){$customgrp{$key}[2]=$Lang::tr{'fwhost err emptytable'};} $grpname=$customgrp{$key}[0]; $remark="$customgrp{$key}[1]"; - if($count gt 2){ print"";} + if($count gt 1){ print"";} print "
$grpname   "; print " $Lang::tr{'remark'}:  $remark   " if ($remark ne ''); print "$Lang::tr{'used'}: $customgrp{$key}[4]x"; @@ -1554,7 +1554,6 @@ sub viewtablegrp $number++; } print""; - } &Header::closebox(); } -- 2.39.2