diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php
index e8f59727c07..a5e83155f03 100644
--- a/htdocs/admin/stock.php
+++ b/htdocs/admin/stock.php
@@ -394,7 +394,7 @@ print "\n";
print "\n";
// Option to force stock to be enough before adding a line into document
-if ($conf->invoice->enabled) {
+if (!empty($conf->invoice->enabled)) {
print '
';
print '| '.$langs->trans("StockMustBeEnoughForInvoice").' | ';
print '';
@@ -408,7 +408,7 @@ if ($conf->invoice->enabled) {
print " |
\n";
}
-if ($conf->order->enabled) {
+if (!empty($conf->order->enabled)) {
print '';
print '| '.$langs->trans("StockMustBeEnoughForOrder").' | ';
print '';
@@ -422,7 +422,7 @@ if ($conf->order->enabled) {
print " |
\n";
}
-if ($conf->expedition->enabled) {
+if (!empty($conf->expedition->enabled)) {
print '';
print '| '.$langs->trans("StockMustBeEnoughForShipment").' | ';
print '';
|