]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13872:
authorthepurpleblob <thepurpleblob>
Tue, 11 Mar 2008 14:26:38 +0000 (14:26 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 11 Mar 2008 14:26:38 +0000 (14:26 +0000)
Display a dash when no grade info, suppresses notice.

Merged from STABLE_19

mod/assignment/index.php

index 9a7a0c5cbe1bf58c1a3f1b5129351366bc1d3658..334266e95be041d086e1c51d48b9ab95d30617e5 100644 (file)
@@ -90,6 +90,9 @@
         if (isset($grading_info->items[0])) {
             $grade = $grading_info->items[0]->grades[$USER->id]->str_grade;
         }
+        else {
+            $grade = '-';
+        }
 
         $type = $types[$cm->assignmenttype];