[feature/attach-dl] Initialised arrays if they're used

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-04 14:10:26 +01:00
parent 0cad61efbf
commit 20a2ceccbd

View file

@ -158,8 +158,8 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED'); trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
} }
$attachment = false; $attachment = ($download_id) ? array() : false;
$attachments = false; $attachments = ($topic_id || $post_id) ? array() : false;
if ($download_id) if ($download_id)
{ {