From d7261a5425fab26a4ac5b39697fe2c987cb5e066 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 25 Dec 2009 16:34:27 +0000 Subject: [PATCH] Reduce amount of forums by selecting postable forums only. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10381 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/feed.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/feed.php b/phpBB/feed.php index 4966793176..3a3cd988b6 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -1336,7 +1336,8 @@ class phpbb_feed_topics_active extends phpbb_feed_topic_base { $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . ' - WHERE ' . $db->sql_bit_and('forum_options', FORUM_OPTION_FEED_EXCLUDE, '= 0') . ' + WHERE forum_type = ' . FORUM_POST . ' + AND ' . $db->sql_bit_and('forum_options', FORUM_OPTION_FEED_EXCLUDE, '= 0') . ' AND ' . $db->sql_bit_and('forum_flags', log(FORUM_FLAG_ACTIVE_TOPICS, 2), '<> 0'); $result = $db->sql_query($sql);