dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
Showing only changes of commit 28511e0cc4 - Show all commits
+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 = [];