mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11717] Use topic_posts_approved instead of topic_replies
Due to the move to soft-delete, the topic_replies column no longer exists in the topics table. Instead, the column topic_posts_approved should be used. PHPBB3-11717
This commit is contained in:
@@ -366,7 +366,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
{
|
||||
$sql = "SELECT p.post_id
|
||||
FROM $sort_join" . POSTS_TABLE . ' p, ' . TOPICS_TABLE . " t
|
||||
WHERE t.topic_replies = 0
|
||||
WHERE t.topic_posts_approved = 1
|
||||
AND p.topic_id = t.topic_id
|
||||
$last_post_time
|
||||
AND $m_approve_posts_fid_sql
|
||||
@@ -378,7 +378,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
{
|
||||
$sql = 'SELECT DISTINCT ' . $sort_by_sql[$sort_key] . ", p.topic_id
|
||||
FROM $sort_join" . POSTS_TABLE . ' p, ' . TOPICS_TABLE . " t
|
||||
WHERE t.topic_replies = 0
|
||||
WHERE t.topic_posts_approved = 1
|
||||
AND t.topic_moved_id = 0
|
||||
AND p.topic_id = t.topic_id
|
||||
$last_post_time
|
||||
|
Reference in New Issue
Block a user