diff --git a/htdocs/product/card.php b/htdocs/product/card.php index b42384e934d..9141810d9c8 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -2199,7 +2199,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { $arrayselected[] = $cat->id; } } - if (GETPOSTISSET('categories', 'array')) { + if (GETPOSTISARRAY('categories')) { foreach (GETPOST('categories', 'array') as $cat) { $arrayselected[] = $cat; } diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php index 02d8e6e2002..f22e688327a 100644 --- a/htdocs/product/reassort.php +++ b/htdocs/product/reassort.php @@ -534,7 +534,7 @@ if ($resql) { print img_warning($langs->trans("StockLowerThanLimit", $objp->seuil_stock_alerte)).' '; } if ($objp->stock_physique < 0) { print ''; } - print price2num($product->stock_theorique, 'MS', 0, $langs, 1, 0); + print price(price2num($product->stock_theorique, 'MS'), 0, $langs, 1, 0); if ($objp->stock_physique < 0) { print ''; } print ''; }