updateArticle-Exceptions

This commit is contained in:
2026-06-02 15:31:02 +02:00
parent c6b55030cf
commit fb54ba2462
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$article->setTags($cleanedTags);
$articleManager->updateArticle($id ,$article, $author);
} catch (Exception $e){
$_SESSION["message"] = "internal_error";
$_SESSION["message"] = $e->getMessage();
header("location: ../../index.php?pfad=updateArticle");
exit();
}