Merge pull request #26137 from hregis/fix_avoid_lines_breaks

FIX avoid warning if module not activated
This commit is contained in:
Laurent Destailleur 2023-10-09 10:29:53 +02:00 committed by GitHub
commit e65f32b3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -393,15 +393,15 @@ class box_graph_product_distribution extends ModeleBoxes
}
if ($nbofgraph == 2) {
$stringtoshow .= '<div class="fichecenter"><div class="containercenter"><div class="fichehalfleft">';
if ($showpropalnb) {
if (isModEnabled('propal') && $showpropalnb) {
$stringtoshow .= $px2->show();
} elseif ($showordernb) {
} elseif (isModEnabled('commande') && $showordernb) {
$stringtoshow .= $px3->show();
}
$stringtoshow .= '</div><div class="fichehalfright">';
if ($showinvoicenb) {
if (isModEnabled('facture') && $showinvoicenb) {
$stringtoshow .= $px1->show();
} elseif ($showordernb) {
} elseif (isModEnabled('commande') && $showordernb) {
$stringtoshow .= $px3->show();
}
$stringtoshow .= '</div></div></div>';