Fixed grid extra spacing
authorJamie Cameron <jcameron@webmin.com>
Thu, 3 Jan 2008 01:20:23 +0000 (01:20 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 3 Jan 2008 01:20:23 +0000 (01:20 +0000)
ui-lib.pl

index f2d51e8..3628890 100644 (file)
--- a/ui-lib.pl
+++ b/ui-lib.pl
@@ -1099,7 +1099,8 @@ local $rv = "<table".
            ($width ? " width=$width%" : "").
            ($tabletags ? " ".$tabletags : "").
            ">\n";
-for(my $i=0; $i<@$elements; $i++) {
+my $i;
+for($i=0; $i<@$elements; $i++) {
        $rv .= "<tr>" if ($i%$cols == 0);
        $rv .= "<td ".$tds->[$i%$cols]." valign=top>".$elements->[$i]."</td>\n";
        $rv .= "</tr>" if ($i%$cols == $cols-1);