From: moodler Date: Tue, 26 Nov 2002 02:36:16 +0000 (+0000) Subject: Fix display of grades when there aren't any grades X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=71d552f677f898653101ab4619f7f5a0dfae9729;p=moodle.git Fix display of grades when there aren't any grades --- diff --git a/course/grades.php b/course/grades.php index 5d030f0c77..8c3991677a 100644 --- a/course/grades.php +++ b/course/grades.php @@ -83,6 +83,8 @@ $grades[$student->id][] = $modgrades->grades[$student->id]; // may be empty, that's ok if ($modgrades->maxgrade) { $totals[$student->id] = (float)($totals[$student->id]) + (float)($modgrades->grades[$student->id]); + } else { + $totals[$student->id] = (float)($totals[$student->id]) + 0; } } }