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 c8d383f commit 3f6d43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohort/locallib.php
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 3f6d43d

Please sign in to comment.