diff --git a/post.php b/post.php index 913a2c34..9a2a219b 100644 --- a/post.php +++ b/post.php @@ -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);