redo backported fix and update adherent substitution methode

This commit is contained in:
John Botella
2019-06-21 15:32:38 +02:00
parent 200b66d11f
commit ec7ebe9f39
2 changed files with 16 additions and 16 deletions

View File

@@ -5733,7 +5733,7 @@ function make_substitutions($text, $substitutionarray, $outputlangs=null)
// Make substitition for array $substitutionarray
foreach ($substitutionarray as $key => $value)
{
//if (! isset($value)) continue; // If value is null, it same than not having substitution key at all into array, we do not replace.
if (! isset($value)) continue; // If value is null, it same than not having substitution key at all into array, we do not replace.
if ($key == '__SIGNATURE__' && (! empty($conf->global->MAIN_MAIL_DO_NOT_USE_SIGN))) $value=''; // Protection
if ($key == '__USER_SIGNATURE__' && (! empty($conf->global->MAIN_MAIL_DO_NOT_USE_SIGN))) $value=''; // Protection