diff --git a/gamumail_fonctions.php b/gamumail_fonctions.php index 23a230a..62a0f37 100644 --- a/gamumail_fonctions.php +++ b/gamumail_fonctions.php @@ -100,6 +100,9 @@ function gamumail_traiter_dist($corps, $options, $slug, $destinataires='') { } function gamumail_remplacer_modele($modele, $val, $texte){ + if (empty($val)) { + $val = ' '; + } if ($texte and $modele and $val) { return str_replace('@@'.$modele.'@@', $val, $texte); }