Redirect to 404 from profile and group

This commit is contained in:
K. Nobel
2017-02-02 15:34:45 +01:00
parent 4a7a91ecd9
commit 8a3cfebf55
4 changed files with 23 additions and 4 deletions

View File

@@ -13,9 +13,16 @@
include_once("../queries/group_page.php");
$group = selectGroupByName($_GET["groupname"]);
if(!$group = selectGroupByName($_GET["groupname"])) {
header("HTTP/1.0 404 Not Found");
header("Location: error/404.php");
die();
}
$members = selectGroupMembers($group["groupID"]);
/*
* This view adds the main layout over the screen.
* Header, menu, footer.