Permalink
Browse files

Merged from 1.8.

  • Loading branch information...
1 parent 09b62d3 commit c7a990842fd5bde92c4653f9f6e5e5ecd3977ea8 vyshane committed Feb 15, 2007
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/type/questiontype.php
@@ -752,7 +752,9 @@ function print_question_grading_details(&$question, &$state, $cmoptions, $option
}
// 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 ' ';

0 comments on commit c7a9908

Please sign in to comment.