MDL-33691: The grading table is showing "graded" for assignments with a NULL grade

This commit is contained in:
Damyon Wiese
2012-06-13 11:01:37 +08:00
parent 0961ca7998
commit 571cc0b7d2
+1 -1
View File
@@ -414,7 +414,7 @@ class assign_grading_table extends table_sql implements renderable {
if ($row->locked) {
$o .= $this->output->container(get_string('submissionslockedshort', 'assign'), 'lockedsubmission');
}
if ($row->grade >= 0) {
if ($row->grade !== NULL && $row->grade >= 0) {
$o .= $this->output->container(get_string('graded', 'assign'), 'submissiongraded');
}
}