Permalink
Browse files

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

  • Loading branch information...
1 parent c8d383f commit 3f6d43dc32a97c6901d22305f954d9d754b4a8e4 Paul Verrall committed Feb 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}
}

0 comments on commit 3f6d43d

Please sign in to comment.