- Handle multisel config options with <= 5 items

This commit is contained in:
dave 2009-04-14 06:25:55 +00:00
parent 255adde40a
commit 2c6e90d37b

View File

@ -278,10 +278,12 @@ function config_editor($category, $year, $array_name, $self)
$rows = intval(($c+2) / 3);
print("</td></tr><tr class=\"$trclass\"><td colspan=2>");
print("<table width=\"100%\"><tr><td width=\"10%\">&nbsp;");
} else {
$rows = $c;
}
for($x=0; $x<$c; $x++) {
if(($x % $rows) == 0 && $rows > 0) {
if(($x % $rows) == 0 && $rows > 0 && $c > 5) {
print("</td><td width=\"30%\">");
}