Permalink
Browse files

For very large classes don't even try to show all the participants

  • Loading branch information...
moodler
moodler committed Nov 12, 2002
1 parent 5530644 commit cbb0fee071e8eadf2a7aa399f6a2029ad39d49c7
Showing with 4 additions and 0 deletions.
  1. +3 −0 user/index.php
  2. +1 −0 user/lib.php
View
@@ -68,6 +68,9 @@
foreach ($students as $student) {
print_user($student, $course, $string);
}
+ } else if ($numstudents > $USER_HUGE_CLASS) {
+ print_heading(get_string("toomanytoshow"));
+
} else { // Print one big table with abbreviated info
$columns = array("name", "city", "country", "lastaccess");
View
@@ -2,6 +2,7 @@
$USER_SMALL_CLASS = 20; // Below this is considered small
$USER_LARGE_CLASS = 200; // Above this is considered large
+$USER_HUGE_CLASS = 500; // Above this is considered too many to display
/// FUNCTIONS ///////////////////////////////////////////////////////////

0 comments on commit cbb0fee

Please sign in to comment.