diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 53f77262db1..a53c3b3e925 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4794,10 +4794,10 @@ class Form
* @param int $width Width of photo
* @param int $height Height of photo (auto if 0)
* @param int $caneditfield Add edit fields
- * @param string $photologo CSS name to use on img for photo
+ * @param string $cssclass CSS name to use on img for photo
* @return string HTML code to output photo
*/
- static function showphoto($modulepart,$object,$width=100,$height=0,$caneditfield=0,$cssclass='photowithmargin')
+ static function showphoto($modulepart, $object, $width=100, $height=0, $caneditfield=0, $cssclass='photowithmargin')
{
global $conf,$langs;
diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index 12e05c3a45d..f80050287e9 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -502,7 +502,7 @@ if ($id > 0 || $ref)
$text_stock_options.= (! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER)?$langs->trans("ReStockOnValidateOrder").'
':'');
$text_stock_options.= (! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)?$langs->trans("ReStockOnDispatchOrder").'
':'');
print '