diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index 8989010..d50a35f 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -8,7 +8,7 @@ require_once "../model/LocalUserDAO.php"; $dao = new LocalUserDAO(); if (!isset($_SESSION["user"])) { - header("Location: index.php?pfad=login"); + header("Location: ../../index.php?pfad=login"); exit(); } @@ -23,7 +23,7 @@ if (!$user) { $_SESSION = []; session_destroy(); - header("Location: index.php?pfad=login"); + header("Location: ../../index.php?pfad=login"); exit(); }