aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-02-05 16:24:15 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-02-05 16:24:15 +0000
commit10f775cb1cc44b083373543a6c08214d1dd291f0 (patch)
tree1ed940936c9433e25a8993875b62d78632207e31 /phpBB/viewtopic.php
parent1d12ca12b3cf828c0857a8678bda2a81d51fd58c (diff)
downloadforums-10f775cb1cc44b083373543a6c08214d1dd291f0.tar
forums-10f775cb1cc44b083373543a6c08214d1dd291f0.tar.gz
forums-10f775cb1cc44b083373543a6c08214d1dd291f0.tar.bz2
forums-10f775cb1cc44b083373543a6c08214d1dd291f0.tar.xz
forums-10f775cb1cc44b083373543a6c08214d1dd291f0.zip
only some minor fixes
git-svn-id: file:///svn/phpbb/trunk@6969 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 4ef45eddc0..15058f1295 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -111,6 +111,7 @@ if ($view && !$post_id)
LEFT JOIN ' . TOPICS_TABLE . " t2 ON (t2.topic_id = $topic_id AND t.forum_id = t2.forum_id)
WHERE t.topic_last_post_time $sql_condition t2.topic_last_post_time
" . (($auth->acl_get('m_approve', $forum_id)) ? '' : 'AND t.topic_approved = 1') . "
+ AND t.topic_moved_id = 0
ORDER BY t.topic_last_post_time $sql_ordering";
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);