From b4ca25db3d975909f8fece041265fe2045d8aed0 Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Fri, 29 May 2026 17:44:30 +0100 Subject: [PATCH] Update showArticle-controller.php --- php/controller/showArticle-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/controller/showArticle-controller.php b/php/controller/showArticle-controller.php index c7c6357..0a368df 100644 --- a/php/controller/showArticle-controller.php +++ b/php/controller/showArticle-controller.php @@ -5,9 +5,9 @@ require_once 'php/model/ArticleManager.php'; if (isset($_GET["id"])){ try { - $id = (int)$_GET["id"]; + $id = $_GET["id"]; $articleManager = ArticleManager::getInstance(); - $article = $articleManager->getArticle($_GET["id"]); + $article = $articleManager->getArticle($id); if($article != null){ $title = $article->getTitle(); $content = $article->getContent();