issue #860 do not force default value for upload_detect_duplicate

This commit is contained in:
plegall
2023-10-15 17:06:50 +02:00
parent 439f275d4e
commit 188be4849c
+1 -1
View File
@@ -158,7 +158,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
}
// we only try to detect duplicate on a new image, not when updating an existing image
if (!isset($image_id) and conf_get_param('upload_detect_duplicate', false))
if (!isset($image_id) and $conf['upload_detect_duplicate'])
{
$query = '
SELECT