mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
geoip-block.cgi: Finish column after last element and uneven amount of items.
This commit is contained in:
@@ -225,7 +225,16 @@ foreach my $location (@locations) {
|
||||
print "<td align='center' $col>$flag</td>\n";
|
||||
print "<td align='center' $col>$ccode_uc</td>\n";
|
||||
print "<td align='left' $col>$cname</td>$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 "<td $col> </td>\n";
|
||||
print "<td $col> </td>\n";
|
||||
print "<td $col> </td>\n";
|
||||
print "<td $col> </td>\n";
|
||||
print "<td $col> </td></tr>\n";
|
||||
}
|
||||
|
||||
$lines2++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user