mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Notices on empty array index. Merging from MOODLE_19_STABLE
This commit is contained in:
parent
603443b519
commit
a344d6db71
@ -87,7 +87,9 @@
|
||||
$submitted = $assignmentinstance->submittedlink(true);
|
||||
|
||||
$grading_info = grade_get_grades($course->id, 'mod', 'assignment', $cm->instance, $USER->id);
|
||||
$grade = $grading_info->items[0]->grades[$USER->id]->str_grade;
|
||||
if (isset($grading_info->items[0])) {
|
||||
$grade = $grading_info->items[0]->grades[$USER->id]->str_grade;
|
||||
}
|
||||
|
||||
$type = $types[$cm->assignmenttype];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user