diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-26 18:54:31 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-26 18:54:31 +0000 |
| commit | 2dee304b0e43d5eac93da7b3370ed43383a295d5 (patch) | |
| tree | 3d39605d7e9fb2a55c4fd7f655d8100362c4caff /phpBB/viewforum.php | |
| parent | ea1b4dcd14127e20423e005e3f3fd21546ccce2a (diff) | |
| download | forums-2dee304b0e43d5eac93da7b3370ed43383a295d5.tar forums-2dee304b0e43d5eac93da7b3370ed43383a295d5.tar.gz forums-2dee304b0e43d5eac93da7b3370ed43383a295d5.tar.bz2 forums-2dee304b0e43d5eac93da7b3370ed43383a295d5.tar.xz forums-2dee304b0e43d5eac93da7b3370ed43383a295d5.zip | |
oops, simple case of "idiotitis paulicus" ... be gone double announcements
git-svn-id: file:///svn/phpbb/trunk@3549 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 22a5438b74..b7482f641f 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -264,7 +264,7 @@ if ($forum_data['forum_postable']) // if (empty($forum_data['topics_list'])) // { - $sql = 'SELECT t.*, lr.lastread_time, lr.lastread_type + $sql = 'SELECT t.*, lr.lastread_time, lr.lastread_type FROM (' . TOPICS_TABLE . ' t LEFT JOIN ' . LASTREAD_TABLE . ' lr ON lr.topic_id = t.topic_id AND lr.user_id = ' . $user->data['user_id'] . ") @@ -288,6 +288,7 @@ if ($forum_data['forum_postable']) AND lr.user_id = ' . $user->data['user_id'] . ") WHERE t.forum_id = $forum_id AND t.topic_approved = 1 + AND t.topic_type <> " . POST_ANNOUNCE . " $limit_topics_time ORDER BY t.topic_type DESC, $sort_order_sql LIMIT $start, " . $config['topics_per_page']; @@ -328,7 +329,6 @@ if ($forum_data['forum_postable']) } */ - // Okay, lets dump out the page ... if ($total_topics) { |
