X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fgeoip-block.cgi;h=056b333e8c955eee667a982c2b227804c75c2d0b;hp=ccbfa926a0ad3c576217107f0fbc7842edf1cfc4;hb=ad1204e4eb397b4f7d10c3bdfa9214aa8c0a0575;hpb=1bebab64407f7836d31bc8b86a46db1984d804a9 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++; }