From 033dc98e5eab3cb6fb0c91c39efdc486233ac0af Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 16 Nov 2004 16:47:16 +0000 Subject: [PATCH] =?UTF-8?q?Affiche=20l'onglet=20Stock=20si=20le=20module?= =?UTF-8?q?=20est=20activ=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/price.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 19277e330d0..d51478e167f 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -81,9 +81,12 @@ $h++; if($product->type == 0) { - $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; - $head[$h][1] = 'Stock'; - $h++; + if ($conf->stock->enabled) + { + $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; + $head[$h][1] = 'Stock'; + $h++; + } } $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;