Skip to content

Commit

Permalink
MDL-13147 fixing undefined ungraded array and its indexes; merged fro…
Browse files Browse the repository at this point in the history
…m MOODLE_19_STABLE
  • Loading branch information
skodak committed Feb 2, 2008
1 parent 14656d1 commit d1556c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion grade/report/grader/lib.php
Expand Up @@ -994,7 +994,11 @@ function get_avghtml($grouponly=false) {
$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;
Expand Down

0 comments on commit d1556c0

Please sign in to comment.