summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index e2e2f56a..e23bba79 100644
--- a/post.php
+++ b/post.php
@@ -277,7 +277,7 @@
}
}
- if($config['image_reject_repost'] && $p = getPostByHash($post['filehash'])) {
+ if($post['has_file'] && $config['image_reject_repost'] && $p = getPostByHash($post['filehash'])) {
undoImage($post);
error(sprintf($config['error']['fileexists'],
$post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] .