From e303a824ff45eb938563592f848e7d2d1b45bda7 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Fri, 6 May 2005 16:43:28 +0000 Subject: [PATCH] Use the grade highlighting only if the maximum grade scheme is used, see bug 2545 --- mod/quiz/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/view.php b/mod/quiz/view.php index 6372ee6133a..14f5211128b 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -206,7 +206,7 @@ if ($quiz->grade and $quiz->sumgrades) { $attemptmark = format_float($attempt->sumgrades,$quiz->decimalpoints); $attemptgrade = format_float(($attempt->sumgrades/$quiz->sumgrades)*$quiz->grade,$quiz->decimalpoints); - if ($attemptgrade == $mygrade) { + if ($attemptgrade == $mygrade and ($quiz->grademethod == QUIZ_GRADEHIGHEST)) { $attemptgrade = "$attemptgrade"; }