From bf3f381c7c964e5de3d87c539dec9886e4226f7b Mon Sep 17 00:00:00 2001 From: Fyorl Date: Wed, 15 Aug 2012 06:01:06 +0800 Subject: [PATCH] [feature/attach-dl] Swapped the order of an if statement PHPBB3-11042 --- phpBB/download/file.php | 6 +++--- 1 file 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'))