diff --git a/htdocs/admin/mails_ticket.php b/htdocs/admin/mails_ticket.php
index a439bdabcf0..b4f9ee23179 100644
--- a/htdocs/admin/mails_ticket.php
+++ b/htdocs/admin/mails_ticket.php
@@ -275,7 +275,7 @@ if ($action == 'edit') {
}
print '
';
// SuperAdministrator access only
- if (empty($conf->multicompany->enabled) || ($user->admin && !$user->entity)) {
+ if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
print '';
print '';
print ''.$langs->trans("SeeLocalSendMailSetup").'';
@@ -305,7 +305,7 @@ if ($action == 'edit') {
}
print ' | ';
// SuperAdministrator access only
- if (empty($conf->multicompany->enabled) || ($user->admin && !$user->entity)) {
+ if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
print '';
print '';
print ''.$langs->trans("SeeLocalSendMailSetup").'';
@@ -323,7 +323,7 @@ if ($action == 'edit') {
$mainstmpid = (!empty($conf->global->MAIN_MAIL_SMTPS_ID_TICKET) ? $conf->global->MAIN_MAIL_SMTPS_ID_TICKET : '');
print ' | | '.$langs->trans("MAIN_MAIL_SMTPS_ID").' | ';
// SuperAdministrator access only
- if (empty($conf->multicompany->enabled) || ($user->admin && !$user->entity)) {
+ if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
print '';
} else {
$htmltext = $langs->trans("ContactSuperAdminForChange");
@@ -338,7 +338,7 @@ if ($action == 'edit') {
$mainsmtppw = (!empty($conf->global->MAIN_MAIL_SMTPS_PW_TICKET) ? $conf->global->MAIN_MAIL_SMTPS_PW_TICKET : '');
print ' |
| '.$langs->trans("MAIN_MAIL_SMTPS_PW").' | ';
// SuperAdministrator access only
- if (empty($conf->multicompany->enabled) || ($user->admin && !$user->entity)) {
+ if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
print '';
} else {
$htmltext = $langs->trans("ContactSuperAdminForChange");
@@ -496,7 +496,7 @@ if ($action == 'edit') {
print ''.$langs->trans("DoTestSend").'';
- if (!empty($conf->fckeditor->enabled)) {
+ if (isModEnabled('fckeditor')) {
print ''.$langs->trans("DoTestSendHTML").'';
}
}
|