mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/attach-dl] Swapped the order of an if statement
PHPBB3-11042
This commit is contained in:
parent
9729fa9a3e
commit
bf3f381c7c
1 changed files with 3 additions and 3 deletions
|
@ -300,13 +300,13 @@ else if ($download_id)
|
|||
else
|
||||
{
|
||||
// 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
|
||||
{
|
||||
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'))
|
||||
|
|
Loading…
Add table
Reference in a new issue