Permalink
Browse files

Fix display of grades when there aren't any grades

  • Loading branch information...
moodler
moodler committed Nov 26, 2002
1 parent 83173d5 commit 71d552f677f898653101ab4619f7f5a0dfae9729
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/grades.php
View
@@ -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;
}
}
}

0 comments on commit 71d552f

Please sign in to comment.