Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix display of grades when there aren't any grades

  • Loading branch information...
commit 71d552f677f898653101ab4619f7f5a0dfae9729 1 parent 83173d5
authored November 26, 2002

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  course/grades.php
2  course/grades.php
@@ -83,6 +83,8 @@
83 83
                                     $grades[$student->id][] = $modgrades->grades[$student->id]; // may be empty, that's ok
84 84
                                     if ($modgrades->maxgrade) {
85 85
                                         $totals[$student->id] = (float)($totals[$student->id]) + (float)($modgrades->grades[$student->id]);
  86
+                                    } else {
  87
+                                        $totals[$student->id] = (float)($totals[$student->id]) + 0;
86 88
                                     }
87 89
                                 }
88 90
                             }

0 notes on commit 71d552f

Please sign in to comment.
Something went wrong with that request. Please try again.