From d7acca36fd9b7a43b28446203289650cb0703067 Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Tue, 26 May 2026 18:46:42 +0200 Subject: [PATCH] Update createArticle.php --- content/createArticle.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/createArticle.php b/content/createArticle.php index fbb8819..5655b8d 100644 --- a/content/createArticle.php +++ b/content/createArticle.php @@ -6,6 +6,12 @@ include_once $abs_path . '/php/model/ArticleManagerDAO.php'; include_once $abs_path . '/php/model/ArticleManager.php'; + try { + $articleManager = new ArticleManager(); + }catch (Exception $e){ + die("Fehler bei der Initialisierung des Artikel-Managers: " . $e->getMessage()); + } + if(isset($_POST['title']) && isset($_POST['content']) && isset($_POST['category'])) { }else{