From 46fbd65ab7ae5b860f8f0b746003ec968711e045 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Mon, 6 Feb 2006 22:52:05 +0000 Subject: [PATCH] Show grading details only if $options->scores is true --- mod/quiz/questiontypes/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/questiontypes/questiontype.php b/mod/quiz/questiontypes/questiontype.php index ee06b5eefbf..b588e24e749 100644 --- a/mod/quiz/questiontypes/questiontype.php +++ b/mod/quiz/questiontypes/questiontype.php @@ -552,7 +552,7 @@ class quiz_default_questiontype { attempt and displays the overall grade obtained counting all previous responses (and penalties) */ - if (!empty($question->maxgrade)) { + if (!empty($question->maxgrade) && $options->scores) { if (!('' === $state->last_graded->grade)) { // Display the grading details from the last graded state $grade->cur = round($state->last_graded->grade, $cmoptions->decimalpoints);