diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index c3139bb3c78..971343d9c19 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -856,7 +856,7 @@ class FormMail extends Form
// Preview of attachment
$out .= img_mime($listofnames[$key]).' '.$listofnames[$key];
- $out .= $formfile->showPreview(array(), $formfile_params[2], $formfile_params[4], 0, ($entity == 1 ? '' : 'entity='.((int) $entity));
+ $out .= $formfile->showPreview(array(), $formfile_params[2], $formfile_params[4], 0, ($entity == 1 ? '' : 'entity='.((int) $entity)));
if (!$this->withfilereadonly) {
$out .= ' ';
//$out.= ' '.img_delete($langs->trans("Delete").'';
diff --git a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php
index 6aaa15f6401..aa8fcbc9545 100644
--- a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php
+++ b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php
@@ -63,12 +63,7 @@ class StockTransfer extends CommonObject
public $isextrafieldmanaged = 1;
/**
- * @var int Name of subtable line
- */
- public $table_element_line = 'stocktransfer_stocktransferline';
-
- /**
- * @var int Field with ID of parent key if this object has a parent
+ * @var string Field with ID of parent key if this object has a parent
*/
public $fk_element = 'fk_stocktransfer';