diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-16 21:20:03 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-16 21:20:03 +0000 |
commit | 639a8067bd5819cc016fc287c15c1baf887c7539 (patch) | |
tree | 0f2b66ad7747787bbfae12d4444286062f688fd7 /phpBB/viewforum.php | |
parent | ddd401d276e8bac2c52c1da754b99dd363467b4d (diff) | |
download | forums-639a8067bd5819cc016fc287c15c1baf887c7539.tar forums-639a8067bd5819cc016fc287c15c1baf887c7539.tar.gz forums-639a8067bd5819cc016fc287c15c1baf887c7539.tar.bz2 forums-639a8067bd5819cc016fc287c15c1baf887c7539.tar.xz forums-639a8067bd5819cc016fc287c15c1baf887c7539.zip |
Who is the moron? Hey, stop pointing at me ... fixed mistake in SQL
git-svn-id: file:///svn/phpbb/trunk@681 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r-- | phpBB/viewforum.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 6b117cd87c..64381f5c26 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -185,15 +185,15 @@ if(!empty($HTTP_POST_VARS['postdays']) || !empty($HTTP_GET_VARS['postdays'])) FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p WHERE t.forum_id = $forum_id AND p.post_id = t.topic_last_post_id - AND p.post_time > $min_post_time - OR t.topic_type = " . POST_ANNOUNCE; + AND ( p.post_time > $min_post_time + OR t.topic_type = " . POST_ANNOUNCE . " )"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't obtain limited topics count information", "", __LINE__, __FILE__, $sql); } list($topics_count) = $db->sql_fetchrow($result); - + $limit_posts_time = "AND ( p.post_time > $min_post_time OR t.topic_type = " . POST_ANNOUNCE . " ) "; if(!empty($HTTP_POST_VARS['postdays'])) |