Submissions.php: ignore cases where Student_ID is empty.

Bug430-Eden2
Lan Hui 2023-08-25 21:42:01 +08:00
parent 5ac8062175
commit 1b8e2bc76d
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Remarking'");
$rs2 = mysqli_query($con, "SELECT ID, Course_Group_id, course_group_members_table.Student_ID, course_group_members_table.Status, users_table.Full_Name
FROM course_group_members_table
INNER JOIN users_table ON users_table.Student_ID=course_group_members_table.Student_ID
WHERE course_group_members_table.Course_Group_id=$id");
WHERE course_group_members_table.Student_ID AND course_group_members_table.Course_Group_id=$id");
while ($row = mysqli_fetch_assoc($rs2)) {
$name = $row['Full_Name'];