small mistake

This commit is contained in:
Savetheinternet 2011-02-19 20:39:13 +11:00
parent 0ecfc414f9
commit edfba3b196

View File

@ -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); undoImage($post);
error(sprintf($config['error']['fileexists'], error(sprintf($config['error']['fileexists'],
$post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] . $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] .