mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[feature/attach-dl] Removed superfluous ternary statement
PHPBB3-11042
This commit is contained in:
parent
32f7338361
commit
a0bc902612
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user