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{