Fix display of grades when there aren't any grades

This commit is contained in:
moodler
2002-11-26 02:36:16 +00:00
parent 83173d563c
commit 71d552f677
+2
View 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;
}
}
}