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

This commit is contained in:
Paul Verrall
2014-02-13 16:19:59 +00:00
parent c8d383fdcd
commit 3f6d43dc32
+1 -1
View File
@@ -126,7 +126,7 @@ class cohort_existing_selector extends user_selector_base {
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);
}
}