Admin.php: remove superfluous if statement.

Bug430-Eden2
Lan Hui 2023-08-19 20:53:12 +08:00
parent 12239d9a29
commit 93ba7d4389
1 changed files with 20 additions and 16 deletions

View File

@ -375,8 +375,9 @@ course_ta ON course_ta.Course_ID=courses_table.Course_ID where course_ta.TA=$use
}
if(mysqli_num_rows($result)==0)
{} else { while($row = mysqli_fetch_assoc($result)) {
if(mysqli_num_rows($result) != 0)
{
while($row = mysqli_fetch_assoc($result)) {
$id=$row['Course_ID'];
$name=$row['Course_Name'];
$code=$row['Course_Code'];
@ -402,7 +403,10 @@ where course_ta.Course_ID=$id");
</div>
</a>";
}}?>
}
}
?>
</div>
<div class="col-md-4">
<br>