diff --git a/inc/envoyer_gamumail.php b/inc/envoyer_gamumail.php index ff04765..34e9ffd 100644 --- a/inc/envoyer_gamumail.php +++ b/inc/envoyer_gamumail.php @@ -61,7 +61,7 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = [], $Tid_doc_pie if (array_key_exists('sujet', $options)) { $sujet = $options['sujet']; } else { - $sujet = array_shift($texte); + $sujet = array_shift($html); } } else { // contenus du slug