forked from Wavyzz/dolibarr
Fix warning with rector
This commit is contained in:
@@ -311,7 +311,7 @@ class CMailFile
|
||||
// Add auto copy to if not already in $to (Note: Adding bcc for specific modules are also done from pages)
|
||||
// For example MAIN_MAIL_AUTOCOPY_TO can be 'email@example.com, __USER_EMAIL__, ...'
|
||||
if (getDolGlobalString('MAIN_MAIL_AUTOCOPY_TO')) {
|
||||
$listofemailstoadd = explode(',', $conf->global->MAIN_MAIL_AUTOCOPY_TO);
|
||||
$listofemailstoadd = explode(',', getDolGlobalString('MAIN_MAIL_AUTOCOPY_TO'));
|
||||
foreach ($listofemailstoadd as $key => $val) {
|
||||
$emailtoadd = $listofemailstoadd[$key];
|
||||
if (trim($emailtoadd) == '__USER_EMAIL__') {
|
||||
|
||||
Reference in New Issue
Block a user