Use the grade highlighting only if the maximum grade scheme is used, see bug 2545

This commit is contained in:
gustav_delius
2005-05-06 16:43:28 +00:00
parent 47d726e9ae
commit e303a824ff
+1 -1
View File
@@ -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 = "<span class=\"highlight\">$attemptgrade</span>";
}