Skip to content

Commit

Permalink
MDL-13862 grader report - do not show column averages if error found
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 10, 2008
1 parent 1505b92 commit 29ed8ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grade/report/grader/lib.php
Expand Up @@ -972,6 +972,11 @@ function get_avghtml($grouponly=false) {
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;
}
Expand Down

0 comments on commit 29ed8ea

Please sign in to comment.