From 67881aa80142bf674e82d0ed55b1662592bd5f9d Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 10 Mar 2008 09:33:09 +0000 Subject: [PATCH] MDL-13862 grader report - do not show column averages if error found; merged from MOODLE_19_STABLE --- grade/report/grader/lib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 557462c27f..cf8bd36d6a 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -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 .= ''.get_string('error').''; + continue; + } + if (!isset($sum_array[$item->id])) { $sum_array[$item->id] = 0; } -- 2.39.5