From e1fa222dc56883f1f529e1efddd0b7a8d019cb14 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Fri, 14 Aug 2009 15:55:50 +0000 Subject: [PATCH] we are not supposed to know that yet git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9984 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 1f42c041ff..2592b1be07 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -278,8 +278,6 @@ if (!$topic_data) } $forum_id = (int) $topic_data['forum_id']; -$topic_id = (int) $topic_data['topic_id']; - // This is for determining where we are (page) if ($post_id) { @@ -324,6 +322,7 @@ if ($post_id) } } +$topic_id = (int) $topic_data['topic_id']; // $topic_replies = ($auth->acl_get('m_approve', $forum_id)) ? $topic_data['topic_replies_real'] : $topic_data['topic_replies'];