mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11586] Combine $filedata['post_attach'] assign into a single statement.
PHPBB3-11586
This commit is contained in:
parent
11c80c0402
commit
50e3173e8c
1 changed files with 1 additions and 8 deletions
|
@ -403,14 +403,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
|||
$upload->set_disallowed_content(explode('|', $config['mime_triggers']));
|
||||
}
|
||||
|
||||
if (!$local)
|
||||
{
|
||||
$filedata['post_attach'] = ($upload->is_valid($form_name)) ? true : false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$filedata['post_attach'] = true;
|
||||
}
|
||||
$filedata['post_attach'] = $local || $upload->is_valid($form_name);
|
||||
|
||||
if (!$filedata['post_attach'])
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue