]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from 1.8.
authorvyshane <vyshane>
Thu, 15 Feb 2007 06:15:24 +0000 (06:15 +0000)
committervyshane <vyshane>
Thu, 15 Feb 2007 06:15:24 +0000 (06:15 +0000)
question/type/questiontype.php

index 14f44a59d4587d0e8f7b371f3ab852e0ccb10786..846e9d9f397efe1125b28fad375604fe3b37e478 100644 (file)
@@ -752,7 +752,9 @@ class default_questiontype {
                     }
                     // print info about new penalty
                     // penalty is relevant only if the answer is not correct and further attempts are possible
-                    if (($state->last_graded->raw_grade < $question->maxgrade) and (QUESTION_EVENTCLOSEANDGRADE !== $state->event)) {
+                    if (($state->last_graded->raw_grade < $question->maxgrade / 1.01)
+                                and (QUESTION_EVENTCLOSEANDGRADE !== $state->event)) {
+
                         if ('' !== $state->last_graded->penalty && ((float)$state->last_graded->penalty) > 0.0) {
                             // A penalty was applied so display it
                             echo ' ';