X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fgeoip-block.cgi;h=056b333e8c955eee667a982c2b227804c75c2d0b;hb=87bee81c561562c61324769313414fcff5704176;hp=ccbfa926a0ad3c576217107f0fbc7842edf1cfc4;hpb=93bfe63d55bf611887fbc25c251c6fb0ce2ab1d4;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/html/cgi-bin/geoip-block.cgi b/html/cgi-bin/geoip-block.cgi index ccbfa926a0..056b333e8c 100644 --- a/html/cgi-bin/geoip-block.cgi +++ b/html/cgi-bin/geoip-block.cgi @@ -225,7 +225,16 @@ foreach my $location (@locations) { print "$flag\n"; print "$ccode_uc\n"; print "$cname$line_end\n"; - + + # Finish column when the last element in the array has passed and we have an uneven amount of items. + if(! ($lines2 % 2) && ($location eq $locations[-1] )) { + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + } + $lines2++; }