mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/attach-dl] Swapped the order of an if statement
PHPBB3-11042
This commit is contained in:
parent
9729fa9a3e
commit
bf3f381c7c
@ -300,13 +300,13 @@ else if ($download_id)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// sizeof($attachments) >= 1
|
// sizeof($attachments) >= 1
|
||||||
if (!$attachment['in_message'])
|
if ($attachment['in_message'])
|
||||||
{
|
{
|
||||||
phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
|
phpbb_download_handle_pm_auth($db, $auth, $user->data['user_id'], $attachment['post_msg_id']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
phpbb_download_handle_pm_auth($db, $auth, $user->data['user_id'], $attachment['post_msg_id']);
|
phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('compress'))
|
if (!class_exists('compress'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user