diff options
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r-- | phpBB/feed.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php index b6d93a45f8..2e1589d999 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -751,16 +751,11 @@ class phpbb_feed_overall extends phpbb_feed_post_base return false; } - // m_approve forums - $fid_m_approve = $this->get_moderator_approve_forums(); - $sql_m_approve = (!empty($fid_m_approve)) ? 'OR ' . $db->sql_in_set('forum_id', $fid_m_approve) : ''; - // Determine topics with recent activity $sql = 'SELECT topic_id, topic_last_post_time FROM ' . TOPICS_TABLE . ' - WHERE ' . $db->sql_in_set('forum_id', $forum_ids) . ' - AND topic_moved_id = 0 - AND ' . phpbb_content_visibility::get_visibility_sql_global('topic') . ' + WHERE topic_moved_id = 0 + AND ' . phpbb_content_visibility::get_visibility_sql_forums('topic', $forum_ids) . ' ORDER BY topic_last_post_time DESC'; $result = $db->sql_query_limit($sql, $this->num_items); |