diff --git a/admin/reports_schoolprojects.php b/admin/reports_schoolprojects.php index 211cddd..90ed0c1 100644 --- a/admin/reports_schoolprojects.php +++ b/admin/reports_schoolprojects.php @@ -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(); ?>