1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 15:05:43 +02:00

[feature/attach-dl] Removed need for array_keys()

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-14 13:23:21 +01:00
parent 39676d513e
commit ef2e7ca791

View File

@ -375,7 +375,7 @@ else
{
if (!extension_allowed($forum_id, $attach['extension'], $extensions))
{
$disallowed[$attach['extension']] = 1;
$disallowed[$attach['extension']] = $attach['extension'];
continue;
}
@ -402,7 +402,7 @@ else
if ($count < 1)
{
// None of the attachments had a valid a extension
$disallowed = implode(', ', array_keys($disallowed));
$disallowed = implode(', ', $disallowed);
send_status_line(404, 'Forbidden');
trigger_error(sprintf($user->lang['EXTENSION_DISABLED_AFTER_POSTING'], $disallowed));
}