1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/14168] Unset prototype classes after use

PHPBB3-14168
This commit is contained in:
Marc Alexander
2015-09-21 10:13:26 +02:00
parent 2ce73a22e7
commit 4709c8a128
2 changed files with 4 additions and 1 deletions

View File

@@ -408,8 +408,10 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
/** @var \phpbb\attachment\upload $attachment_upload */
$attachment_upload = $phpbb_container->get('attachment.upload');
$file = $attachment_upload->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
unset($attachment_upload);
return $attachment_upload->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
return $file;
}
/**