aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-15 06:01:06 +0800
committerFyorl <gaelreth@gmail.com>2012-08-15 06:01:56 +0800
commitbf3f381c7c964e5de3d87c539dec9886e4226f7b (patch)
tree973b0f759e6b0347dc49645d118b26d606f4a401
parent9729fa9a3e6fbc559156ccd2b83b64b73e4b0194 (diff)
downloadforums-bf3f381c7c964e5de3d87c539dec9886e4226f7b.tar
forums-bf3f381c7c964e5de3d87c539dec9886e4226f7b.tar.gz
forums-bf3f381c7c964e5de3d87c539dec9886e4226f7b.tar.bz2
forums-bf3f381c7c964e5de3d87c539dec9886e4226f7b.tar.xz
forums-bf3f381c7c964e5de3d87c539dec9886e4226f7b.zip
[feature/attach-dl] Swapped the order of an if statement
PHPBB3-11042
-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'))