FIX php8 compatibility
This commit is contained in:
parent
c0239b95ea
commit
30891769d8
@ -338,7 +338,7 @@ foreach ($dirproduct as $dirroot) {
|
|||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
} else {
|
} else {
|
||||||
$disabled = false;
|
$disabled = false;
|
||||||
if (!empty($conf->multicompany->enabled) && (is_object($mc) && !empty($mc->sharings['referent']) && $mc->sharings['referent'] == $conf->entity) ? false : true) {
|
if (isModEnabled('multicompany') && (is_object($mc) && !empty($mc->sharings['referent']) && $mc->sharings['referent'] == $conf->entity) ? false : true) {
|
||||||
}
|
}
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
if (!$disabled) {
|
if (!$disabled) {
|
||||||
@ -556,7 +556,7 @@ print '</tr>';
|
|||||||
// Rule for price
|
// Rule for price
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
if (empty($conf->multicompany->enabled)) {
|
if (!isModEnabled('multicompany')) {
|
||||||
print '<td>'.$langs->trans("PricingRule").'</td>';
|
print '<td>'.$langs->trans("PricingRule").'</td>';
|
||||||
} else {
|
} else {
|
||||||
print '<td>'.$form->textwithpicto($langs->trans("PricingRule"), $langs->trans("SamePriceAlsoForSharedCompanies"), 1).'</td>';
|
print '<td>'.$form->textwithpicto($langs->trans("PricingRule"), $langs->trans("SamePriceAlsoForSharedCompanies"), 1).'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user