debugging

This commit is contained in:
NOrtmann1
2026-06-10 17:21:28 +02:00
parent 42aa908f1c
commit a0932fed04
+3 -3
View File
@@ -21,7 +21,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
exit(); exit();
} }
try { /*try {
$articleManager = ArticleManager::getInstance(); $articleManager = ArticleManager::getInstance();
$articleManager->deleteArticle($id, $user); $articleManager->deleteArticle($id, $user);
@@ -30,9 +30,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$_SESSION["message"] = $e->getMessage(); $_SESSION["message"] = $e->getMessage();
header("location: ../../index.php?pfad=profile"); header("location: ../../index.php?pfad=profile");
exit(); exit();
} }*/
$_SESSION["message"] = "article_deleted"; $_SESSION["message"] = "article_deleted";
// Weiterleitung zur Homepage
header("location: ../../index.php?pfad=profile"); header("location: ../../index.php?pfad=profile");
exit(); exit();
} }