From f99b7bc8ab8db1b6e18925f54d852681f661cc03 Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Mon, 1 Jun 2026 14:02:11 +0200 Subject: [PATCH] Update updateArticle-controller.php --- php/controller/updateArticle-controller.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/php/controller/updateArticle-controller.php b/php/controller/updateArticle-controller.php index 3a40f5c..6ff32ec 100644 --- a/php/controller/updateArticle-controller.php +++ b/php/controller/updateArticle-controller.php @@ -28,11 +28,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $content = $_POST["content"]; $author = "max.mustermann"; // TODO: später aus Session den angemeldeten Nutzer beziehen. $category = $_POST["category"]; - if (isset($_POST['tags'])) { - $tags = $_POST['tags']; - } else { - $tags = ''; - } + $tags = $_POST['tags'] ?? ''; // -------------------------------- Validierung der Daten: ------------------------- if (!articleAuthorValidator($author)) {