From cdccb0bfe81719a88f6e4d20dc43a9943c7bcbc7 Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Wed, 3 Jun 2026 19:51:58 +0200 Subject: [PATCH] debugging --- php/controller/showCategory-controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/php/controller/showCategory-controller.php b/php/controller/showCategory-controller.php index e14bd7e..2f0678f 100644 --- a/php/controller/showCategory-controller.php +++ b/php/controller/showCategory-controller.php @@ -8,6 +8,7 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali try { $articleManager = ArticleManager::getInstance(); $articles = $articleManager->getArticlesByCategory($category); + echo $articles[0]->getTitle(); } catch (Exception $e) { $_SESSION["message"] = "internal_error"; include_once "content/404.php";