mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[feature/attach-dl] Removed superfluous ternary statement
PHPBB3-11042
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user