1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

[ticket/13904] Fix uploading for use with new filespec class

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-05-31 14:47:57 +02:00
parent 891ffb8ac7
commit 0cbb713cc2
3 changed files with 16 additions and 10 deletions

View File

@@ -435,7 +435,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
$file = ($local) ? $upload->local_upload($local_storage, $local_filedata, $mimetype_guesser) : $upload->form_upload($form_name, $mimetype_guesser, $plupload);
if ($file->init_error)
if ($file->init_error())
{
$filedata['post_attach'] = false;
return $filedata;