Fix warning

This commit is contained in:
Laurent Destailleur 2020-12-07 13:29:56 +01:00
parent 4f826fae26
commit ca2ce88bd2

View File

@ -132,8 +132,9 @@ class InterfaceTicketEmail extends DolibarrTriggers
$langs->load('ticket');
// Send email to notification email
$sendto = $conf->global->TICKET_NOTIFICATION_EMAIL_TO;
if (!empty($conf->global->TICKET_NOTIFICATION_EMAIL_TO) && empty($object->context['disableticketemail'])) {
$sendto = empty($conf->global->TICKET_NOTIFICATION_EMAIL_TO) ? '' : $conf->global->TICKET_NOTIFICATION_EMAIL_TO;
if ($sendto) {
// Init to avoid errors
$filepath = array();