MDL-23598 fixed display problem related to review option - credit goes to Joseph RŽzeau

This commit is contained in:
Petr Skoda
2010-08-03 10:32:27 +00:00
parent 847400a741
commit f3b2189178
+2 -2
View File
@@ -142,11 +142,11 @@ if ($canmanage) {
}
}
// Report attempts remaining
if ($result->attemptsremaining != 0) {
if ($result->attemptsremaining != 0 && !$lesson->review) {
$lesson->add_message(get_string('attemptsremaining', 'lesson', $result->attemptsremaining));
}
// Report if max attempts reached
if ($result->maxattemptsreached != 0) {
if ($result->maxattemptsreached != 0 && !$lesson->review) {
$lesson->add_message('('.get_string("maximumnumberofattemptsreached", "lesson").')');
}