From e8057508c355e672a3c6097bfa249f30e6714205 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Sun, 20 Dec 2020 22:50:17 -0800 Subject: [PATCH] Fix duplicate file error Resolves #152. --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])); } } }