From 71d552f677f898653101ab4619f7f5a0dfae9729 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 26 Nov 2002 02:36:16 +0000 Subject: [PATCH] Fix display of grades when there aren't any grades --- course/grades.php | 2 ++ 1 file changed, 2 insertions(+) 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; } } } -- 2.39.5