Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-44142 Cohorts: Use maxusersperpage for list of current users.

  • Loading branch information...
commit a266a1a07b4c1bfb0250b57142a4c993f0982ad5 1 parent 692d247
Paul Verrall authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cohort/locallib.php
2  cohort/locallib.php
View
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.