summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.php b/post.php
index 907bd433..12584c51 100644
--- a/post.php
+++ b/post.php
@@ -320,6 +320,7 @@ if (isset($_POST['delete'])) {
$_FILES['file'] = array(
'name' => basename($url_without_params),
'tmp_name' => $post['file_tmp'],
+ 'file_tmp' => true,
'error' => 0,
'size' => filesize($post['file_tmp'])
);
@@ -704,7 +705,7 @@ if (isset($_POST['delete'])) {
chmod($file['file'], 0644);
} elseif (!@move_uploaded_file($file['tmp_name'], $file['file']))
error($config['error']['nomove']);
- }
+ }
}
if ($config['image_reject_repost']) {