Skip to content

Commit

Permalink
Fix errors in quiz overview download MDL-7316
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 31, 2006
1 parent 8089506 commit e4edbb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/quiz/report/overview/report.php
Expand Up @@ -350,8 +350,12 @@ function display($quiz, $cm, $course) {

// 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();
}
Expand Down

0 comments on commit e4edbb9

Please sign in to comment.