mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-13147 fixing undefined ungraded array and its indexes; merged from MOODLE_19_STABLE
This commit is contained in:
parent
14656d15a0
commit
d1556c0985
@ -994,7 +994,11 @@ class grade_report_grader extends grade_report {
|
||||
$sum_array[$item->id] = 0;
|
||||
}
|
||||
|
||||
$ungraded_count = $ungraded_counts[$itemid]->count;
|
||||
if (isset($ungraded_counts[$itemid])) {
|
||||
$ungraded_count = $ungraded_counts[$itemid]->count;
|
||||
} else {
|
||||
$ungraded_count = 0;
|
||||
}
|
||||
|
||||
if ($meanselection == GRADE_REPORT_MEAN_GRADED) {
|
||||
$mean_count = $totalcount - $ungraded_count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user