Fehlerbehebung

This commit is contained in:
2026-06-15 23:41:28 +02:00
parent e20b59b43d
commit c4c299eed6
4 changed files with 66 additions and 30 deletions
+2 -1
View File
@@ -32,7 +32,7 @@ if (empty($articleId) || empty($content)) {
try {
$commentManager = CommentManager::getInstance();
$commentManager->addComment(
$commentId = $commentManager->addComment(
$articleId,
$_SESSION["user_email"],
$content,
@@ -41,6 +41,7 @@ try {
echo json_encode([
"success" => true,
"commentId" => $commentId,
"author" => $_SESSION["user_email"],
"content" => $content,
"created" => date("Y-m-d H:i:s"),