Commit 4f110020 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-54802-master-fix' of git://github.com/cameron1729/moodle

parents f3da9c49 26cb467b
......@@ -534,9 +534,9 @@ class mod_quiz_mod_form extends moodleform_mod {
}
if (array_key_exists('completion', $data) && $data['completion'] == COMPLETION_TRACKING_AUTOMATIC) {
// Show an error if require passing grade was selected and the grade to pass was setted to 0.
// Show an error if require passing grade was selected and the grade to pass was set to 0.
if ($data['completionpass'] == 1 && (empty($data['gradepass']) || grade_floatval($data['gradepass']) == 0)) {
$errors['gradepass'] = get_string('gradetopassnotset', 'quiz');
$errors['completionpassgroup'] = get_string('gradetopassnotset', 'quiz');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment