From aa6effbb0c597b8ac5c81df7d8c8a543173b53b6 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 10 Aug 2012 02:04:39 +0200 Subject: [PATCH] [feature/attach-dl] Remove backticks from SQL query. PHPBB3-11042 --- phpBB/download/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 4dd592a2f6..e710928bec 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -392,13 +392,13 @@ else if ($post_id) { - $sql = 'SELECT `post_subject` + $sql = 'SELECT post_subject FROM ' . POSTS_TABLE . " WHERE post_id = $post_id"; } else { - $sql = 'SELECT `topic_title` + $sql = 'SELECT topic_title FROM ' . TOPICS_TABLE . " WHERE topic_id = $topic_id"; }