diff --git a/user/index.php b/user/index.php index b92f058b654..7681e775072 100644 --- a/user/index.php +++ b/user/index.php @@ -68,6 +68,8 @@ $limit = ""; } + $numstudentsall = count_records("user_students", "course", $course->id); + if ($students = get_course_students($course->id, "$dsort $dir $limit")) { $numstudents = count($students); echo "
".get_string("displayingfirst", "", $moreinfo); - echo " (id&sort=$sort&dir=$dir&showall=1\">".get_string("showall", "", $numstudents).")"; + echo " (id&sort=$sort&dir=$dir&showall=1\">".get_string("showall", "", $numstudentsall).")"; echo "