forked from science-ation/science-ation
Fixed the reports_schoolprojects report to not error when there are no projects
This commit is contained in:
parent
d644f6dcd6
commit
fea05546d1
@ -113,8 +113,12 @@
|
||||
|
||||
$table['data'][]=array($proj->projectnumber,$proj->title,$students);
|
||||
}
|
||||
$rep->addTable($table);
|
||||
unset($table);
|
||||
//we only add the table if there something to add, otherwise, the report must still be blank
|
||||
if(is_array($table))
|
||||
{
|
||||
$rep->addTable($table);
|
||||
unset($table);
|
||||
}
|
||||
|
||||
$rep->output();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user