diff --git a/mod/quiz/index.php b/mod/quiz/index.php index f15c30304e7..6c87002f62c 100644 --- a/mod/quiz/index.php +++ b/mod/quiz/index.php @@ -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; }