diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 2508ebce5ca..53e19a560f0 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -352,7 +352,9 @@ class FormFile
// Add entity in $param if not already exists
if (!preg_match('/entity\=[0-9]+/', $param)) {
- $param.= 'entity='.(!empty($object->entity)?$object->entity:$conf->entity);
+ $paramEntity = 'entity='.(!empty($object->entity)?$object->entity:$conf->entity);
+ if (!empty($param)) $paramEntity = '&' .$paramEntity;
+ $param .= $paramEntity;
}
$printer=0;