From a0932fed04fc486b605426409e5e9e3106a91e1d Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Wed, 10 Jun 2026 17:21:28 +0200 Subject: [PATCH] debugging --- php/controller/deleteArticle-controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/controller/deleteArticle-controller.php b/php/controller/deleteArticle-controller.php index 68cc651..96f0307 100644 --- a/php/controller/deleteArticle-controller.php +++ b/php/controller/deleteArticle-controller.php @@ -21,7 +21,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { exit(); } - try { + /*try { $articleManager = ArticleManager::getInstance(); $articleManager->deleteArticle($id, $user); @@ -30,9 +30,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $_SESSION["message"] = $e->getMessage(); header("location: ../../index.php?pfad=profile"); exit(); - } + }*/ + $_SESSION["message"] = "article_deleted"; - // Weiterleitung zur Homepage header("location: ../../index.php?pfad=profile"); exit(); }