FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-23 10:13:14 +02:00
parent 1a92621bd7
commit 28b60d9003

View File

@ -539,7 +539,7 @@ print $formcategory->textwithpicto('', $langs->trans("TicketsAutoNotifyCloseHelp
print '</td>';
print '</tr>';
if (! empty($conf->product->enabled)) {
if (isModEnabled('product')) {
print '<tr class="oddeven"><td>'.$langs->trans("TicketChooseProductCategory").'</td>';
print '<td class="left">';
$formcategory->selectProductCategory($conf->global->TICKET_PRODUCT_CATEGORY, 'product_category_id');