mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/attach-dl] Removed superfluous ternary statement
PHPBB3-11042
This commit is contained in:
parent
32f7338361
commit
a0bc902612
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue