debugging

This commit is contained in:
2026-06-01 23:15:48 +02:00
parent 3774a2caee
commit 28511e0cc4
+2 -2
View File
@@ -12,7 +12,7 @@ if (!isset($_SESSION["user"])) {
} }
$user = $dao->findUser($_SESSION["user_email"] ?? ""); $user = $dao->findUser($_SESSION["user_email"] ?? "");
try { /*try {
$author = $user->getAuthor(); $author = $user->getAuthor();
$articleManager = ArticleManager::getInstance(); $articleManager = ArticleManager::getInstance();
$userArticles = $articleManager->getArticlesByAuthor($author); $userArticles = $articleManager->getArticlesByAuthor($author);
@@ -21,7 +21,7 @@ try {
} }
} catch (Exception $e) { } catch (Exception $e) {
$_SESSION["message"] = "internal_error"; $_SESSION["message"] = "internal_error";
} }*/
if (!$user) { if (!$user) {
$_SESSION = []; $_SESSION = [];