From 316defd2d3412940c982a7675523eb063ba009a5 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 4 Sep 2008 09:27:19 +0000 Subject: [PATCH] MDL-3633 Further refinement. --- mod/quiz/view.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mod/quiz/view.php b/mod/quiz/view.php index 78951f3607..f68b9a9467 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -181,8 +181,7 @@ $markcolumn = $gradecolumn && ($quiz->grade != $quiz->sumgrades); $overallstats = $alloptions->scores; - $feedbackcolumn = quiz_has_feedback($quiz->id); - $overallfeedback = $feedbackcolumn && $alloptions->overallfeedback; + $feedbackcolumn = quiz_has_feedback($quiz->id) && $alloptions->overallfeedback; // Prepare table header $table->class = 'generaltable quizattemptsummary'; @@ -330,7 +329,7 @@ $resultinfo .= print_heading(get_string('comment', 'quiz'), '', 3, 'main', true); $resultinfo .= '

'.$gradebookfeedback."

\n"; } - if ($overallfeedback) { + if ($feedbackcolumn) { $resultinfo .= print_heading(get_string('overallfeedback', 'quiz'), '', 3, 'main', true); $resultinfo .= '

'.quiz_feedback_for_grade($mygrade, $quiz->id)."

\n"; } -- 2.39.5