]> git.mjollnir.org Git - moodle.git/commitdiff
Fix errors in quiz overview download MDL-7316; merged from MOODLE_17_STABLE
authorskodak <skodak>
Tue, 31 Oct 2006 22:19:15 +0000 (22:19 +0000)
committerskodak <skodak>
Tue, 31 Oct 2006 22:19:15 +0000 (22:19 +0000)
mod/quiz/report/overview/report.php

index c207d78a6c99b87444b9cf5f401966487490eaa1..484bd86550c0785f4878626905661515b29a3c35 100644 (file)
@@ -350,8 +350,12 @@ class quiz_report extends quiz_default_report {
 
         // Fetch the attempts
         if (!empty($from)) { // if we're in the site course and displaying no attempts, it makes no sense to do the query.
-            $attempts = get_records_sql($select.$from.$where.$sort,
+            if (!$download) {
+                $attempts = get_records_sql($select.$from.$where.$sort,
                                         $table->get_page_start(), $table->get_page_size());
+            } else {
+                $attempts = get_records_sql($select.$from.$where.$sort);
+            }
         } else {
             $attempts = array();
         }