negative grades might be used so use null check instead. might break other db so might need a sql_null() function or something similar

This commit is contained in:
toyomoyo
2007-07-18 06:21:55 +00:00
parent a5431b72b0
commit 1ad2f41253
+2 -2
View 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();