Fix errors in quiz overview download MDL-7316

This commit is contained in:
skodak
2006-10-31 22:17:50 +00:00
parent 80895066a2
commit e4edbb9e0b
+5 -1
View 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();
}