]> git.mjollnir.org Git - moodle.git/commitdiff
negative grades might be used so use null check instead. might break other db so...
authortoyomoyo <toyomoyo>
Wed, 18 Jul 2007 06:21:55 +0000 (06:21 +0000)
committertoyomoyo <toyomoyo>
Wed, 18 Jul 2007 06:21:55 +0000 (06:21 +0000)
grade/report/grader/lib.php

index 4ece4997c7c88fcb23e514fef4a76592e5c6dea7..41f836d75130ef3df050f4b00717e3e18a0d23f6 100644 (file)
@@ -771,7 +771,7 @@ class grade_report_grader extends grade_report {
                      $this->groupwheresql
                 AND ra.roleid in ($this->gradebookroles)
                 AND ra.contextid ".get_related_contexts_string($this->context)."
-                AND g.finalgrade >= 0
+                AND NOT g.finalgradeIS NULL
                 GROUP BY g.itemid";
 
             $groupsum = array();
@@ -858,7 +858,7 @@ class grade_report_grader extends grade_report {
                 WHERE gi.courseid = $this->courseid
                 AND ra.roleid in ($this->gradebookroles)
                 AND ra.contextid ".get_related_contexts_string($this->context)."
-                AND g.finalgrade >= 0
+                AND NOT g.finalgrade IS NULL
                 GROUP BY g.itemid";
 
             $classsum = array();