1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/attach-dl] Swapped the order of an if statement

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-15 06:01:06 +08:00
parent 9729fa9a3e
commit bf3f381c7c

View File

@ -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'))