diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 2a4ad20ed04..b9b31762037 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1668,7 +1668,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { // Status To sell print ''.$langs->trans("Status").' ('.$langs->trans("Sell").')'; print ''; - if (GETPOSTISSET('statut_buy') ? GETPOST('statut_buy') : $object->status_buy) { + if ((GETPOSTISSET('statut_buy') && GETPOST('statut_buy')) || (!GETPOSTISSET('statut_buy') && $object->status_buy)) { print ''; print ''; } else {