missing_id

This commit is contained in:
NOrtmann1
2026-05-29 17:40:56 +01:00
parent 32cb8a9d9e
commit c785363384
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -9,7 +9,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$_SESSION["message"] = "missing_parameters";
header("location: ../../index.php?pfad=updateArticle");
exit();
} else {
} elseif(!isset($id)) {
$_SESSION["message"] = "missing_id";
}else{
$newTitle = $_POST["title"];
$newContent = $_POST["content"];