This commit is contained in:
Jake Dallimore 2022-11-11 11:45:26 +08:00
commit e10ecfc434
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class lesson_override_form extends moodleform {
$mform->setDefault('review', $this->lesson->review);
// Number of attempts.
$numbers = array();
$numbers = ['0' => get_string('unlimited')];
for ($i = 10; $i > 0; $i--) {
$numbers[$i] = $i;
}

View File

@ -125,7 +125,7 @@ if ($ADMIN->fulltree) {
get_string('displayreview', 'lesson'), get_string('displayreview_help', 'lesson'),
array('value' => 0, 'adv' => false), $yesno));
$attempts = array();
$attempts = ['0' => get_string('unlimited')];
for ($i = 10; $i > 0; $i--) {
$attempts[$i] = $i;
}