diff --git a/mod/quiz/report/grading/report.php b/mod/quiz/report/grading/report.php index af1905918ca..4b0c67e9536 100644 --- a/mod/quiz/report/grading/report.php +++ b/mod/quiz/report/grading/report.php @@ -276,8 +276,8 @@ class quiz_grading_report extends quiz_default_report { $table->pagesize(QUIZ_REPORT_DEFAULT_PAGE_SIZE, $totalattempts); // get the attempts and process them + echo '
'; if ($attempts = $DB->get_records_sql($select.$from.$where.$sort, $params, $table->get_page_start(), $table->get_page_size())) { - echo '
'; // grade all link $links = "id&questionid=$question->id\">".get_string('gradeall', 'quiz_grading', $totalattempts).''; if ($ungraded>0){ @@ -314,12 +314,10 @@ class quiz_grading_report extends quiz_default_report { } $table->add_separator(); $table->add_data_keyed(array('grade'=> $links)); - // print everything here - $table->print_html(); - echo '
'; - } else { - echo $OUTPUT->notification(get_string('noattemptstoshow', 'quiz')); } + // print everything here + $table->print_html(); + echo '
'; }