MDL-71376 mod_quiz: fix undefined object reference

This commit is contained in:
Rajneel Totaram 2021-04-20 20:10:04 +12:00
parent 0fd37bf5d8
commit 2ff9484417

View File

@ -125,8 +125,8 @@ foreach ($quizzes as $quiz) {
$strsection = $quiz->section;
$strsection = get_section_name($course, $quiz->section);
}
if ($currentsection) {
$learningtable->data[] = 'hr';
if ($currentsection !== "") {
$table->data[] = 'hr';
}
$currentsection = $quiz->section;
}