use getDolGlobalString to avoid getting undefined property (#35436)

This commit is contained in:
Dylan Bourdere 2025-09-22 20:30:47 +02:00 committed by GitHub
parent f33fe1036f
commit 669c939bcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5836,7 +5836,7 @@ class Facture extends CommonInvoice
}
// Errors Recipient
$errors_to = $conf->global->MAIN_MAIL_ERRORS_TO;
$errors_to = getDolGlobalString('MAIN_MAIL_ERRORS_TO');;
$trackid = 'inv'.$tmpinvoice->id;
$sendcontext = 'standard';