From 18fe69cbcd34b409e852017f135496f03ca05383 Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Wed, 3 Jun 2026 19:34:48 +0200 Subject: [PATCH] Update showCategory-controller.php --- php/controller/showCategory-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/controller/showCategory-controller.php b/php/controller/showCategory-controller.php index 59dda14..73f4258 100644 --- a/php/controller/showCategory-controller.php +++ b/php/controller/showCategory-controller.php @@ -9,12 +9,12 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali $articles = $articleManager->getArticlesByCategory($category); } catch (Exception $e) { $_SESSION["message"] = "internal_error"; - header("location: ../../index.php"); + include_once "content/404.php"; exit(); } }else{ $_SESSION["message"] = "invalid_category"; - header("location: ../../index.php"); + include_once "content/404.php"; exit(); } ?> \ No newline at end of file