MDL-71376 mod_quiz: fix undefined object reference

This commit is contained in:
Rajneel Totaram
2021-04-20 20:12:05 +12:00
parent 9600becce3
commit 97ba2d707c
+2 -2
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;
}