post.php: remove useless code

This commit is contained in:
Zankaria 2024-11-28 16:28:33 +01:00
parent a095b0993c
commit 367953f134

View file

@ -1421,7 +1421,7 @@ function handle_post()
$file['extension'] == ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'])
) {
// Copy, because there's nothing to resize
copy($file['tmp_name'], $file['thumb']);
coopy($file['tmp_name'], $file['thumb']);
$file['thumbwidth'] = $image->size->width;
$file['thumbheight'] = $image->size->height;
@ -1686,10 +1686,6 @@ function handle_post()
$post = (array) $post;
if ($post['files']) {
$post['files'] = $post['files'];
}
$post['num_files'] = sizeof($post['files']);
$post['id'] = $id = post($post);