diff --git a/php/controller/showCategory-controller.php b/php/controller/showCategory-controller.php index 1f20f34..938fca0 100644 --- a/php/controller/showCategory-controller.php +++ b/php/controller/showCategory-controller.php @@ -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);