From ce4a9b76c730fab9df837b90cb2eeba9e4f956c1 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 1 Dec 2022 20:26:27 +0800 Subject: [PATCH] Admin.php: remove redundant parenthese --- Admin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin.php b/Admin.php index 0ca1453..1c29bcd 100644 --- a/Admin.php +++ b/Admin.php @@ -44,7 +44,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") { echo "TA Accounts
" ; } - else if(($_SESSION['user_type'] == "Admin")){ + else if($_SESSION['user_type'] == "Admin"){ echo "

Lecturer Account Management


"; @@ -84,7 +84,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") { } - else if(($_SESSION['user_type'] == "Admin")){ + else if($_SESSION['user_type'] == "Admin"){ echo "Create Lecturer Accounts "; } @@ -109,7 +109,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") { } - else if(($_SESSION['user_type'] == "Admin")){ + else if($_SESSION['user_type'] == "Admin"){ echo " Lecturer "; @@ -160,7 +160,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") { ); } - else if(($_SESSION['user_type'] == "Admin")){ + else if($_SESSION['user_type'] == "Admin"){ $result = mysqli_query( $con,