MDL-33691: The grading table is showing "graded" for assignments with a NULL grade
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Wed, 13 Jun 2012 03:01:37 +0000 (11:01 +0800)
committerDamyon Wiese <damyon.wiese@netspot.com.au>
Wed, 13 Jun 2012 03:01:37 +0000 (11:01 +0800)
mod/assign/gradingtable.php

index 6d11be0..5161eeb 100644 (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');
             }
         }