Fix warning

This commit is contained in:
Laurent Destailleur 2023-03-21 19:02:14 +01:00
parent e15bd39573
commit da000f816a
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -534,7 +534,7 @@ if ($resql) {
print img_warning($langs->trans("StockLowerThanLimit", $objp->seuil_stock_alerte)).' ';
}
if ($objp->stock_physique < 0) { print '<span class="warning">'; }
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 '</span>'; }
print '</td>';
}