Fixed some notices when there are no activities

This commit is contained in:
moodler 2007-06-26 09:21:52 +00:00
parent 8ace2060a8
commit f9016aefca

View File

@ -50,6 +50,7 @@ if ($gradetree = new grade_tree($courseid)) {
$table->setup();
if ($gradetree->tree_array) {
// loop through grade items to extra data
foreach ($gradetree->tree_array as $gradeitemobj) {
@ -125,5 +126,7 @@ if ($gradetree = new grade_tree($courseid)) {
// print the page
print_heading(get_string('userreport', 'grades'));
$table->print_html();
}
}
?>