mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed some notices when there are no activities
This commit is contained in:
parent
8ace2060a8
commit
f9016aefca
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user