Update profileArticles-controller.php

This commit is contained in:
NOrtmann1
2026-05-29 17:37:48 +02:00
parent fec3cbb550
commit 4a7bfa9567
@@ -8,7 +8,7 @@ require_once 'php/model/Article.php';
require_once 'php/model/ArticleManager.php'; require_once 'php/model/ArticleManager.php';
try { try {
$author = "max.mustermann1"; // TODO: später Nutzer aus der Session beziehen. $author = "max.mustermann"; // TODO: später Nutzer aus der Session beziehen.
$articleManager = ArticleManager::getInstance(); $articleManager = ArticleManager::getInstance();
$userArticles = $articleManager->getArticlesByAuthor($author); $userArticles = $articleManager->getArticlesByAuthor($author);
if(!isset($userArticles)) { if(!isset($userArticles)) {