]> git.mjollnir.org Git - moodle.git/commitdiff
Fix display of grades when there aren't any grades
authormoodler <moodler>
Tue, 26 Nov 2002 02:36:16 +0000 (02:36 +0000)
committermoodler <moodler>
Tue, 26 Nov 2002 02:36:16 +0000 (02:36 +0000)
course/grades.php

index 5d030f0c772a3ba364d1621bc8d993e552fec2d1..8c3991677ac739b2c63a8e647c098b5706c6e268 100644 (file)
@@ -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;
                                     }
                                 }
                             }