[feature/attach-dl] Removed superfluous ternary statement

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-07 16:56:13 +01:00
parent 32f7338361
commit a0bc902612

View file

@ -298,9 +298,9 @@ else
if ($post_id) if ($post_id)
{ {
$sql = 'SELECT p.forum_id, f.forum_password, f.parent_id $sql = 'SELECT p.forum_id, f.forum_password, f.parent_id
FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . " f
WHERE p.post_id = ' . (($attachment) ? $attachment['post_msg_id'] : $post_id) . ' WHERE p.post_id = $post_id
AND p.forum_id = f.forum_id'; AND p.forum_id = f.forum_id";
} }
else if ($topic_id) else if ($topic_id)
{ {