mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/attach-dl] Putting some old code under "else if ($download_id)".
PHPBB3-11042
This commit is contained in:
parent
87c822b794
commit
60d382df4c
1 changed files with 10 additions and 4 deletions
|
@ -193,13 +193,19 @@ if (empty($attachments))
|
||||||
}
|
}
|
||||||
else if ($download_id)
|
else if ($download_id)
|
||||||
{
|
{
|
||||||
|
// sizeof($attachments) == 1
|
||||||
$attachment = current($attachments);
|
$attachment = current($attachments);
|
||||||
}
|
|
||||||
|
|
||||||
if ($attachment && ((!$attachment['in_message'] && !$config['allow_attachments']) || ($attachment['in_message'] && !$config['allow_pm_attach'])))
|
// in_message = 1 means it's in a private message
|
||||||
|
if (!$attachment['in_message'] && !$config['allow_attachments'] || $attachment['in_message'] && !$config['allow_pm_attach'])
|
||||||
|
{
|
||||||
|
send_status_line(404, 'Not Found');
|
||||||
|
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
send_status_line(404, 'Not Found');
|
// sizeof($attachments) > 1
|
||||||
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue