aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/viewtopic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 12cac73143..65699967ad 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -70,7 +70,7 @@ if(isset($HTTP_GET_VARS['view']))
if($sub_result = $db->sql_query($sub_query))
{
$result = $db->sql_fetchrow($sub_result);
- echo $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies,
+ $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies,
f.forum_type, f.forum_name, f.forum_id, u.username, u.user_id
FROM ".TOPICS_TABLE." t, ".TOPICS_TABLE." t2, ".FORUMS_TABLE." f, ".FORUM_MODS_TABLE." fm, ".USERS_TABLE." u
WHERE t.topic_time ".$operator." ".$result['topic_time']."
@@ -413,4 +413,4 @@ $template->pparse("body");
include('includes/page_tail.'.$phpEx);
-?> \ No newline at end of file
+?>