mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-44004 grading_rubric: Ensure that score is set before using it
This commit is contained in:
parent
5fbcc5263a
commit
3f32733702
@ -220,7 +220,7 @@ class MoodleQuickForm_rubriceditor extends HTML_QuickForm_input {
|
||||
'score' => 0,
|
||||
);
|
||||
foreach ($criterion['levels'] as $lastlevel) {
|
||||
if ($level['score'] < $lastlevel['score'] + 1) {
|
||||
if (isset($lastlevel['score']) && $level['score'] < $lastlevel['score'] + 1) {
|
||||
$level['score'] = $lastlevel['score'] + 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user