forked from science-ation/science-ation
- Handle multisel config options with <= 5 items
This commit is contained in:
parent
255adde40a
commit
2c6e90d37b
@ -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%\"> ");
|
||||
} 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%\">");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user