Merge pull request #26137 from hregis/fix_avoid_lines_breaks
FIX avoid warning if module not activated
This commit is contained in:
commit
e65f32b3aa
1 changed files with 4 additions and 4 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Reference in a new issue