mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merged from 1.8.
This commit is contained in:
parent
09b62d3b99
commit
c7a990842f
@ -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 ' ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user