From a0bc902612b4d29846ed21712f54c0f57150bed8 Mon Sep 17 00:00:00 2001 From: Fyorl Date: Tue, 7 Aug 2012 16:56:13 +0100 Subject: [PATCH] [feature/attach-dl] Removed superfluous ternary statement PHPBB3-11042 --- phpBB/download/file.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index f9c611fa96..047248adf1 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -298,9 +298,9 @@ else if ($post_id) { $sql = 'SELECT p.forum_id, f.forum_password, f.parent_id - FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f - WHERE p.post_id = ' . (($attachment) ? $attachment['post_msg_id'] : $post_id) . ' - AND p.forum_id = f.forum_id'; + FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . " f + WHERE p.post_id = $post_id + AND p.forum_id = f.forum_id"; } else if ($topic_id) {