Fehlerbehebung
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user