aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/download/file.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 8342ed0d61..2ee77926ed 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -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'))