forked from science-ation/science-ation
only go through the columns if there are columns to go through
This commit is contained in:
parent
8a0a3dbc74
commit
25de3ace41
@ -304,6 +304,8 @@ function reportChange()
|
|||||||
echo "<h4>Report Data</h4>";
|
echo "<h4>Report Data</h4>";
|
||||||
echo "<table>";
|
echo "<table>";
|
||||||
$x=0;
|
$x=0;
|
||||||
|
//only go through the columns if there are columns to go through
|
||||||
|
if(count($report['col'])) {
|
||||||
foreach($report['col'] as $o=>$d) {
|
foreach($report['col'] as $o=>$d) {
|
||||||
echo "<tr><td>Column ".($x + 1).": </td>";
|
echo "<tr><td>Column ".($x + 1).": </td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
@ -313,7 +315,7 @@ function reportChange()
|
|||||||
field_selector("col[$o][field]", "col$o", $d['field']);
|
field_selector("col[$o][field]", "col$o", $d['field']);
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
$x++;
|
$x++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for(;$x<$n_columns;$x++) {
|
for(;$x<$n_columns;$x++) {
|
||||||
echo "<tr><td>Column ".($x + 1).": </td>";
|
echo "<tr><td>Column ".($x + 1).": </td>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user