Browse Source

Limita o tamanho do recordset recuperado em 25 registros

master
Sesostris Vieira 11 years ago
parent
commit
7343050015
  1. 2
      index.php

2
index.php

@ -171,7 +171,7 @@ if ($sort == 'timecreated') {
} }
$total = $DB->count_records_sql($sql, $params + $where_params); $total = $DB->count_records_sql($sql, $params + $where_params);
$userlist = $DB->get_records_sql($sql, $params + $where_params, $start); $userlist = $DB->get_records_sql($sql, $params + $where_params, $start, ILBENROL_REPORT_PAGE);
if ($csv && $userlist) { // Only show CSV if there are some users if ($csv && $userlist) { // Only show CSV if there are some users
$shortname = format_string($course->shortname, true, array('context' => $context)); $shortname = format_string($course->shortname, true, array('context' => $context));

Loading…
Cancel
Save