Fixed the reports_schoolprojects report to not error when there are no projects

This commit is contained in:
james 2007-02-26 21:43:39 +00:00
parent d644f6dcd6
commit fea05546d1

View File

@ -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();
?>