1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/attach-dl] Also initialise $attachments as an array.

PHPBB3-11042
This commit is contained in:
Andreas Fischer 2012-08-07 16:55:31 +02:00
parent 4b06a220af
commit 3de4a7e78d

View File

@ -151,7 +151,7 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
}
$attachment_ids = array();
$attachments = $attachment_ids = array();
if ($download_id || $post_id || $topic_id)
{
$sql = 'SELECT a.attach_id, a.in_message, a.post_msg_id, a.extension, a.is_orphan, a.poster_id, a.filetime