MDL-13862 grader report - do not show column averages if error found

This commit is contained in:
skodak
2008-03-10 09:32:25 +00:00
parent 1505b92d40
commit 29ed8ead20
+5
View 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;
}