mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Exclude moved topics.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10403 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
085f89e1c1
commit
35dc866cf5
1 changed files with 1 additions and 0 deletions
|
@ -746,6 +746,7 @@ class phpbb_feed_overall extends phpbb_feed_post_base
|
||||||
$sql = 'SELECT topic_id, topic_last_post_time
|
$sql = 'SELECT topic_id, topic_last_post_time
|
||||||
FROM ' . TOPICS_TABLE . '
|
FROM ' . TOPICS_TABLE . '
|
||||||
WHERE ' . $db->sql_in_set('forum_id', $forum_ids) . '
|
WHERE ' . $db->sql_in_set('forum_id', $forum_ids) . '
|
||||||
|
AND topic_moved_id = 0
|
||||||
AND (topic_approved = 1
|
AND (topic_approved = 1
|
||||||
OR ' . $db->sql_in_set('forum_id', $this->get_moderator_approve_forums()) . ')
|
OR ' . $db->sql_in_set('forum_id', $this->get_moderator_approve_forums()) . ')
|
||||||
ORDER BY topic_last_post_time DESC';
|
ORDER BY topic_last_post_time DESC';
|
||||||
|
|
Loading…
Add table
Reference in a new issue