diff --git a/grade/grading/form/rubric/rubriceditor.php b/grade/grading/form/rubric/rubriceditor.php index 093e498175b..bb9cee3e42b 100644 --- a/grade/grading/form/rubric/rubriceditor.php +++ b/grade/grading/form/rubric/rubriceditor.php @@ -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; } }