Merge branch 'MDL-44142-26' of git://github.com/mrverrall/moodle into MOODLE_26_STABLE

This commit is contained in:
Sam Hemelryk
2014-02-17 09:16:41 +13:00
+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);
}
}