FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-22 14:10:15 +02:00
parent 9ef2668263
commit 1f359c3b1e

View File

@ -179,7 +179,7 @@ abstract class ActionsAdherentCardCommon
if ($action == 'view' || $action == 'edit' || $action == 'delete') {
// Emailing
if (!empty($conf->mailing->enabled)) {
if (isModEnabled('mailing')) {
$langs->load("mails");
$this->tpl['nb_emailing'] = $this->object->getNbOfEMailings();
}