From: mjollnir_ Date: Tue, 23 Nov 2004 00:39:29 +0000 (+0000) Subject: Bug fix for patch related to forcing searching in course/student.(html|php) if too... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8b19b040856aa69136160012cbe0bf0d24a1dc82;p=moodle.git Bug fix for patch related to forcing searching in course/student.(html|php) if too many users, and bump to MAX_USERS_PER_PAGE to 5000 --- diff --git a/course/student.html b/course/student.html index d47068da90..0dea5eb9a1 100644 --- a/course/student.html +++ b/course/student.html @@ -49,7 +49,7 @@ } echo "\n"; } - if (!empty($users)) { + else { if ($usercount > MAX_USERS_PER_PAGE) { echo ''."\n" .''."\n"; diff --git a/course/student.php b/course/student.php index 4a42bb6287..7e074998fd 100644 --- a/course/student.php +++ b/course/student.php @@ -3,7 +3,7 @@ require_once("../config.php"); - define("MAX_USERS_PER_PAGE", 1000); + define("MAX_USERS_PER_PAGE", 5000); require_variable($id); // course id optional_variable($add, "");