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();