Skip to content
Browse files

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

  • Loading branch information...
1 parent acbd69f commit 0ec77cdea69c58ba0c0b74513d1b81f82457f28e Paul Verrall committed Feb 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 cohort/locallib.php
View
2 cohort/locallib.php
@@ -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);
}
}

0 comments on commit 0ec77cd

Please sign in to comment.
Something went wrong with that request. Please try again.