Update catalog.php

This commit is contained in:
nolanwhy 2023-02-05 13:40:22 +01:00
parent f4142c0529
commit b077d4a514
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ if (isset($_SESSION['user'])) {
$user = new User($con, $_SESSION['user']);
}
$possiblePages = [
$possibleFilters = [
"hats",
"shirts",
"tshirts",
@ -29,7 +29,7 @@ $possiblePages = [
if(isset($_GET["filter"])) {
$page = $_GET["filter"];
if(!in_array($page,$possiblePages)) {
if(!in_array($page,$possibleFilters)) {
header('location: /error?err=404');
exit;
}