MDL-56046 mod_quiz: do not close the sheet twice
authorMark Nelson <markn@moodle.com>
Wed, 28 Jun 2017 05:07:11 +0000 (13:07 +0800)
committerDavid Monllao <david.monllao@gmail.com>
Wed, 28 Jun 2017 16:24:48 +0000 (18:24 +0200)
mod/quiz/report/statistics/report.php

index b7bea72..790be61 100644 (file)
@@ -256,7 +256,7 @@ class quiz_statistics_report extends quiz_default_report {
             if ($quizstats->s()) {
                 $this->output_quiz_structure_analysis_table($questionstats);
             }
-            $this->table->finish_output();
+            $this->table->export_class_instance()->finish_document();
 
         } else {
             // On-screen display of overview report.