findUser($_SESSION["user_email"] ?? ""); /*try { $author = $user->getAuthor(); $articleManager = ArticleManager::getInstance(); $userArticles = $articleManager->getArticlesByAuthor($author); if(!isset($userArticles)) { $_SESSION["message"] = "user_has_no_articles"; } } catch (Exception $e) { $_SESSION["message"] = "internal_error"; }*/ if (!$user) { $_SESSION = []; session_destroy(); header("Location: index.php?pfad=login"); exit(); }