Show grading details only if $options->scores is true

This commit is contained in:
gustav_delius
2006-02-06 22:52:05 +00:00
parent adce1ab5c1
commit 46fbd65ab7
+1 -1
View File
@@ -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);