Antwortmöglichkeit

This commit is contained in:
2026-06-15 22:50:55 +02:00
parent f23ec27247
commit dafc149bba
+12 -1
View File
@@ -162,7 +162,18 @@ class DatabaseCommentManager implements CommentManagerDAO
$db = $this->getConnection(); $db = $this->getConnection();
$sql = " $sql = "
SELECT * SELECT
id,
article_id,
CASE
WHEN parent_comment_id IS NULL THEN NULL
WHEN parent_comment_id = '' THEN NULL
WHEN parent_comment_id = 0 THEN NULL
ELSE parent_comment_id
END AS parent_comment_id,
author,
content,
created
FROM comments FROM comments
WHERE article_id = :articleId WHERE article_id = :articleId
ORDER BY created ASC ORDER BY created ASC