diff --git a/inc/functions.php b/inc/functions.php
index 42c50aa..185e192 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -395,7 +395,7 @@ function checkDuplicateFile($hex) {
$hexmatches = postsByHex($hex);
if (count($hexmatches) > 0) {
foreach ($hexmatches as $hexmatch) {
- fancyDie(sprintf(__('Duplicate file uploaded. That file has already been posted here.'), 'res/' . (($hexmatch['parent'] == TINYIB_NEWTHREAD) ? $hexmatch['id'] : $hexmatch['parent'])) . '.html#' . $hexmatch['id']);
+ fancyDie(sprintf(__('Duplicate file uploaded. That file has already been posted here.'), 'res/' . (($hexmatch['parent'] == TINYIB_NEWTHREAD) ? $hexmatch['id'] : $hexmatch['parent']) . '.html#' . $hexmatch['id']));
}
}
}