[feature/attach-dl] Fixed a bug with single attachments

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-07 18:21:29 +01:00
parent 10f0fc0713
commit c4655b32f3

View file

@ -333,8 +333,8 @@ else
if ($attachments && sizeof($attachments) < 2) if ($attachments && sizeof($attachments) < 2)
{ {
$attachment = current($attachments);
$attachments = false; $attachments = false;
$attachment = $attachments[0];
} }
if ($attachment) if ($attachment)