Fixed user display with less than 20 students

This commit is contained in:
moodler
2003-09-20 05:19:02 +00:00
parent 0d5c3f158d
commit 30bacddc59
+4 -2
View File
@@ -85,8 +85,10 @@
if (0 < $totalcount and $totalcount < USER_SMALL_CLASS) { // Print simple listing
foreach ($students as $student) {
print_user($student, $course, $string);
if ($students = get_course_students($course->id, $dsort, $dir)) {
foreach ($students as $student) {
print_user($student, $course, $string);
}
}
} else if ($students = get_course_students($course->id, $dsort, $dir, $page*$perpage, $perpage)) {