From e105ab61b7c8bbaf9c1eee6b2eda6957d094929b Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Mon, 1 Jun 2026 12:24:59 +0200 Subject: [PATCH] Update showArticle-controller.php --- php/controller/showArticle-controller.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/php/controller/showArticle-controller.php b/php/controller/showArticle-controller.php index 95d649d..38bb3f2 100644 --- a/php/controller/showArticle-controller.php +++ b/php/controller/showArticle-controller.php @@ -15,13 +15,12 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){ $author = $article->getAuthor(); $tags = $article->getTags(); }else{ - echo "Test"; - header("location: index.php?pfad=404"); + //header("location: index.php?pfad=404"); + include_once "content/404.php"; exit(); } } catch (Exception $e){ $_SESSION["message"] = "internal_error"; - header("location: index.php?pfad=showArticle"); exit(); } }else{