diff --git a/htdocs/core/boxes/box_graph_product_distribution.php b/htdocs/core/boxes/box_graph_product_distribution.php index e0e1498824a..7c9e88239fe 100644 --- a/htdocs/core/boxes/box_graph_product_distribution.php +++ b/htdocs/core/boxes/box_graph_product_distribution.php @@ -393,15 +393,15 @@ class box_graph_product_distribution extends ModeleBoxes } if ($nbofgraph == 2) { $stringtoshow .= '
'; - if ($showpropalnb) { + if (isModEnabled('propal') && $showpropalnb) { $stringtoshow .= $px2->show(); - } elseif ($showordernb) { + } elseif (isModEnabled('commande') && $showordernb) { $stringtoshow .= $px3->show(); } $stringtoshow .= '
'; - if ($showinvoicenb) { + if (isModEnabled('facture') && $showinvoicenb) { $stringtoshow .= $px1->show(); - } elseif ($showordernb) { + } elseif (isModEnabled('commande') && $showordernb) { $stringtoshow .= $px3->show(); } $stringtoshow .= '
';