fix php8 warning
This commit is contained in:
parent
4c76223d63
commit
a465aa8f58
@ -604,7 +604,7 @@ class FormMail extends Form
|
|||||||
|
|
||||||
// Also add robot email
|
// Also add robot email
|
||||||
if (!empty($this->fromalsorobot)) {
|
if (!empty($this->fromalsorobot)) {
|
||||||
if (!empty($conf->global->MAIN_MAIL_EMAIL_FROM) && $conf->global->MAIN_MAIL_EMAIL_FROM != $conf->global->MAIN_INFO_SOCIETE_MAIL) {
|
if (!empty($conf->global->MAIN_MAIL_EMAIL_FROM) && getDolGlobalString('MAIN_MAIL_EMAIL_FROM') != getDolGlobalString('MAIN_INFO_SOCIETE_MAIL')) {
|
||||||
$liste['robot'] = $conf->global->MAIN_MAIL_EMAIL_FROM;
|
$liste['robot'] = $conf->global->MAIN_MAIL_EMAIL_FROM;
|
||||||
if ($this->frommail) {
|
if ($this->frommail) {
|
||||||
$liste['robot'] .= ' <'.$conf->global->MAIN_MAIL_EMAIL_FROM.'>';
|
$liste['robot'] .= ' <'.$conf->global->MAIN_MAIL_EMAIL_FROM.'>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user