]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13862 grader report - do not show column averages if error found; merged from...
authorskodak <skodak>
Mon, 10 Mar 2008 09:33:09 +0000 (09:33 +0000)
committerskodak <skodak>
Mon, 10 Mar 2008 09:33:09 +0000 (09:33 +0000)
grade/report/grader/lib.php

index 557462c27fabb44da918d13b038708bc68fcb568..cf8bd36d6a0680b697144437a221143f56047a48 100644 (file)
@@ -972,6 +972,11 @@ class grade_report_grader extends grade_report {
             foreach ($this->gtree->items as $itemid=>$unused) {
                 $item =& $this->gtree->items[$itemid];
 
+                if ($item->needsupdate) {
+                    $avghtml .= '<td class="cell c' . $columncount++.'"><span class="gradingerror">'.get_string('error').'</span></td>';
+                    continue;
+                }
+
                 if (!isset($sum_array[$item->id])) {
                     $sum_array[$item->id] = 0;
                 }