From edfba3b1962ce8c28647fcb646a0419c7f8dabcc Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 19 Feb 2011 20:39:13 +1100 Subject: [PATCH] small mistake --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] .