diff --git a/php/controller/updateArticle-controller.php b/php/controller/updateArticle-controller.php index 6df27d1..2ffb8b0 100644 --- a/php/controller/updateArticle-controller.php +++ b/php/controller/updateArticle-controller.php @@ -11,6 +11,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { exit(); } elseif(!isset($id)) { $_SESSION["message"] = "missing_id"; + header("location: ../../index.php?pfad=updateArticle"); + exit(); }else{ $newTitle = $_POST["title"];