From 6dd0bd0bcec357ed82b9fe3dbaf6816d6f22d9ce Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 10 Aug 2012 03:29:47 +0200 Subject: [PATCH] [feature/attach-dl] Do not check for passworted forum when it's a PM. PHPBB3-11042 --- phpBB/download/file.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 282708f846..c4d6c26152 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -327,8 +327,10 @@ else if ($download_id) else { // sizeof($attachments) >= 1 - - phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']); + if (!$attachment['in_message']) + { + phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']); + } if (!class_exists('compress')) {