From c4655b32f35d5cd0c7637f33162c190786a48c4b Mon Sep 17 00:00:00 2001 From: Fyorl Date: Tue, 7 Aug 2012 18:21:29 +0100 Subject: [PATCH] [feature/attach-dl] Fixed a bug with single attachments PHPBB3-11042 --- phpBB/download/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index ae44641852..4b19348bac 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -333,8 +333,8 @@ else if ($attachments && sizeof($attachments) < 2) { + $attachment = current($attachments); $attachments = false; - $attachment = $attachments[0]; } if ($attachment)