From 3f6d43dc32a97c6901d22305f954d9d754b4a8e4 Mon Sep 17 00:00:00 2001 From: Paul Verrall Date: Thu, 13 Feb 2014 15:48:40 +0000 Subject: [PATCH] MDL-44142 Cohorts: Use maxusersperpage for list of current users. --- cohort/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cohort/locallib.php b/cohort/locallib.php index 23fa8a6deb1..62dcfdfe90c 100644 --- a/cohort/locallib.php +++ b/cohort/locallib.php @@ -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); } }