Session logout now works
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
include_once("../queries/group_page.php");
|
||||
|
||||
if(!$group = selectGroupByName($_GET["groupname"])) {
|
||||
if(isset($_SESSION["userID"]) and !$group = selectGroupByName($_GET["groupname"])) {
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
header("Location: error/404.php");
|
||||
die();
|
||||
|
||||
@@ -25,7 +25,8 @@ if(empty($_GET["username"])) {
|
||||
$userID = getUserID($_GET["username"]);
|
||||
}
|
||||
|
||||
if(!$user = selectUser($_SESSION["userID"], $userID)) {
|
||||
|
||||
if (isset($_SESSION["userID"]) and !$user = selectUser($_SESSION["userID"], $userID)) {
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
header("Location: error/404.php");
|
||||
die();
|
||||
|
||||
Reference in New Issue
Block a user