Update showCategory-controller.php

This commit is contained in:
2026-07-17 18:01:59 +02:00
parent 2ec1b70c91
commit 31585511d0
+1 -1
View File
@@ -23,7 +23,7 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali
$userManager = UserManager::getInstance();
$allArticles = $articleManager->getArticlesByCategory($category);
foreach ($allArticles as $article) {
$article->setAuthor($userManager->findUser($article->getAuthor())["vorname"]) . " " . $userManager->findUser($article->getAuthor())["nachname"];
$article->setAuthor($userManager->findUser($article->getAuthor())["vorname"] . " " . $userManager->findUser($article->getAuthor())["nachname"]);
}
$totalArticles = count($allArticles);