diff --git a/php/controller/updateArticle-controller.php b/php/controller/updateArticle-controller.php index 16fa90f..0e0bfd1 100644 --- a/php/controller/updateArticle-controller.php +++ b/php/controller/updateArticle-controller.php @@ -21,7 +21,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { if (!isset($_POST["title"]) ||!isset($_POST["content"]) || !isset($_POST["category"])){ $_SESSION["message"] = "missing_parameters"; - header("location: ../../index.php?pfad=updateArticle"); + header("location: ../../index.php?pfad=updateArticle&id=$id"); exit(); }else{ $title = $_POST["title"];