Update updateArticle-controller.php

This commit is contained in:
NOrtmann1
2026-07-19 13:30:39 +02:00
parent 8c8b148bf4
commit 4b84f0ab09
+2 -2
View File
@@ -9,7 +9,7 @@ require_once '../model/Article.php';
require_once '../validator/article-validator.php';
require_once '../../includes/article-block-helper.php';
if (!isset($_SESSION["user_email"])) {
if (!isset($_SESSION["user"])) {
header("Location: index.php?pfad=login");
exit();
}
@@ -71,7 +71,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
}
$_SESSION["old_content"] = json_encode($blocks, JSON_UNESCAPED_UNICODE);
header("location: ../../content/updateArticle.php?id=$id");
header("location: ../../index.php?pfad=updateArticle&id=$id");
exit();
}