diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index f8baa72d4cc7bdc146ae5d57887b0ca3a7566eb2..a75fd5aa28f4d82f59f010a16438195848eceb2c 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -2033,8 +2033,11 @@ class Form
         {
             $opt.= ' - '.$langs->trans("Stock").':'.$objp->stock;
 
-            if ($objp->stock > 0) $outval.= '<span class="product_line_stock_ok">'.' - '.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
-            else if ($objp->stock <= 0) $outval.= '<span class="product_line_stock_too_low">'.' - '.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
+            if ($objp->stock > 0) {
+            	$outval.= ' - <span class="product_line_stock_ok">'.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
+            }elseif ($objp->stock <= 0) {
+            	$outval.= ' - <span class="product_line_stock_too_low">'.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
+            }
         }
 
         if ($outdurationvalue && $outdurationunit)