This commit is contained in:
NOrtmann1
2026-06-10 17:28:40 +02:00
parent e0fbd220f0
commit 5f9789a884
2 changed files with 28 additions and 7 deletions
+8 -7
View File
@@ -6,13 +6,6 @@ if (session_status() === PHP_SESSION_NONE) {
require_once __DIR__ . "/../model/ArticleManager.php";
if ($_SERVER["REQUEST_METHOD"] === "POST") {
if (isset($_POST["id"]) && !empty($_POST["id"])) {
$id = $_POST["id"];
} else {
$_SESSION["message"] = "missing_id";
header("location: ../../index.php?pfad=profile");
exit();
}
if (isset($_SESSION["user"])){
$user = $_SESSION["user"];
@@ -21,6 +14,14 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
exit();
}
if (isset($_POST["id"]) && !empty($_POST["id"])) {
$id = $_POST["id"];
} else {
$_SESSION["message"] = "missing_id";
header("location: ../../index.php?pfad=profile");
exit();
}
try {
$articleManager = ArticleManager::getInstance();