aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-03-02 01:31:39 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-03-02 01:31:39 +0000
commit864262c2ab49981990074f2d289c80365196bddf (patch)
tree9158ab84ab6967816a76510a9204a1612191c92b /phpBB/viewforum.php
parent4b809856ace755fadc639b2df6b6d52637cf10e1 (diff)
downloadforums-864262c2ab49981990074f2d289c80365196bddf.tar
forums-864262c2ab49981990074f2d289c80365196bddf.tar.gz
forums-864262c2ab49981990074f2d289c80365196bddf.tar.bz2
forums-864262c2ab49981990074f2d289c80365196bddf.tar.xz
forums-864262c2ab49981990074f2d289c80365196bddf.zip
MySQL compatibility update of MSSQL compability.
git-svn-id: file:///svn/phpbb/trunk@71 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 111502c7df..90b092df67 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -70,7 +70,7 @@ if(!isset($start))
$start = 0;
}
-$sql = "SELECT t.*, u.username, p.post_time FROM " . TOPICS_TABLE ." t JOIN ". USERS_TABLE. " u ON t.topic_poster = u.user_id LEFT JOIN ".POSTS_TABLE." p ON p.post_id = t.topic_last_post_id WHERE t.forum_id = '$forum_id' ORDER BY topic_time DESC LIMIT $start, $topics_per_page";
+$sql = "SELECT t.*, u.username, p.post_time FROM " . TOPICS_TABLE ." t INNER JOIN ". USERS_TABLE. " u ON t.topic_poster = u.user_id LEFT JOIN ".POSTS_TABLE." p ON p.post_id = t.topic_last_post_id WHERE t.forum_id = '$forum_id' ORDER BY topic_time DESC LIMIT $start, $topics_per_page";
if(!$t_result = $db->sql_query($sql))
{
error_die($db, QUERY_ERROR);