From 7a11cb691223e5db12e884d71fb911660002e6e3 Mon Sep 17 00:00:00 2001 From: tabithakipanga <62544435+tabithakipanga@users.noreply.github.com> Date: Fri, 12 Jun 2020 23:58:27 -0700 Subject: [PATCH] Course.php: the lab report was not appearing when groupid is empty, so I corrected that --- Course.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Course.php b/Course.php index 3fadb2f..f6d5f27 100644 --- a/Course.php +++ b/Course.php @@ -105,10 +105,10 @@ while($row = mysqli_fetch_assoc($resultx1)) {$_SESSION['group_id']=$row['Course_Group_id'];} -if($group_id==""){$group_id=-1;} - $group_id=$_SESSION['group_id']; +if($group_id==""){$group_id=-1;} + $var="SELECT Type,Lab_Report_ID,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4` FROM `lab_reports_table` WHERE Course_ID=$course_id " @@ -170,6 +170,9 @@