From 13f33ab9c7c6c638fffde01480d2d53d26ebd985 Mon Sep 17 00:00:00 2001
From: florian HENRY <florian.henry@atm-consulting.fr>
Date: Thu, 4 Aug 2016 09:23:10 +0200
Subject: [PATCH] syntax

---
 htdocs/core/class/html.form.class.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index f8baa72d4cc..a75fd5aa28f 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)
-- 
GitLab