From 2333cb05b9747861c759f2d3ab95c3c1b628e665 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 17 Aug 2003 07:20:40 +0000 Subject: [PATCH] More tweaks ... sorts etc --- course/student.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/course/student.php b/course/student.php index d70004d305..3bc2fe6321 100644 --- a/course/student.php +++ b/course/student.php @@ -71,7 +71,7 @@ /// Print a help notice about the need to use this page - if (empty($add) and empty($remove)) { + if (empty($add) and empty($remove) and empty($search)) { $note = get_string("assignstudentsnote"); if ($course->password) { $note .= "

".get_string("assignstudentspass", "", "id\">$course->password"); @@ -80,7 +80,7 @@ } /// Get all existing students for this course. - $students = get_course_students($course->id); + $students = get_course_students($course->id, "u.lastname ASC, u.firstname ASC"); /// Print the lists of existing and potential students @@ -108,7 +108,7 @@ /// Print list of potential students - $usercount = get_users(false, $search, true, $studentlist); + $usercount = get_users(false, $search, true, $studentlist, "lastname ASC, firstname ASC"); if ($usercount == 0) { echo "

$strnopotentialstudents

"; -- 2.39.5