Skip to content

Commit

Permalink
MDL-44142 Cohorts: Use maxusersperpage for list of current users.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Verrall committed Feb 13, 2014
1 parent 692d247 commit a266a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohort/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function find_users($search) {

if (!$this->is_validating()) {
$potentialmemberscount = $DB->count_records_sql($countfields . $sql, $params);
if ($potentialmemberscount > 100) {
if ($potentialmemberscount > $this->maxusersperpage) {
return $this->too_many_results($search, $potentialmemberscount);
}
}
Expand Down

0 comments on commit a266a1a

Please sign in to comment.