mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02:00
[feature/attach-dl] Also initialise $attachments as an array.
PHPBB3-11042
This commit is contained in:
@@ -151,7 +151,7 @@ if (!$config['allow_attachments'] && !$config['allow_pm_attach'])
|
|||||||
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
||||||
}
|
}
|
||||||
|
|
||||||
$attachment_ids = array();
|
$attachments = $attachment_ids = array();
|
||||||
if ($download_id || $post_id || $topic_id)
|
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
|
$sql = 'SELECT a.attach_id, a.in_message, a.post_msg_id, a.extension, a.is_orphan, a.poster_id, a.filetime
|
||||||
|
Reference in New Issue
Block a user