diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-07 16:56:13 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-07 16:56:13 +0100 |
commit | a0bc902612b4d29846ed21712f54c0f57150bed8 (patch) | |
tree | 278c8e5120cd6a6abaa0d88fad7a21f7da1b60f5 /phpBB | |
parent | 32f73383612e092166e2d0be89ed98d9fcf21d68 (diff) | |
download | forums-a0bc902612b4d29846ed21712f54c0f57150bed8.tar forums-a0bc902612b4d29846ed21712f54c0f57150bed8.tar.gz forums-a0bc902612b4d29846ed21712f54c0f57150bed8.tar.bz2 forums-a0bc902612b4d29846ed21712f54c0f57150bed8.tar.xz forums-a0bc902612b4d29846ed21712f54c0f57150bed8.zip |
[feature/attach-dl] Removed superfluous ternary statement
PHPBB3-11042
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/download/file.php | 6 |
1 files 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) { |