diff --git a/formulaires/gamumail.php b/formulaires/gamumail.php index f0f2ae7..db2a875 100644 --- a/formulaires/gamumail.php +++ b/formulaires/gamumail.php @@ -40,10 +40,12 @@ function formulaires_gamumail_charger_dist($slug, $auteur = 0, $Tclient = [], $T } } + var_dump($Tpdf); + $TFichierPdf = []; if (is_array($Tpdf) and count($Tpdf)) { if (array_key_exists('fichier', $Tpdf)) { - $TFichierPdf = [$Tpdf]; + $Tpdf = [$Tpdf]; } foreach ($Tpdf as $pdf) { $TFichierPdf[] = $pdf['fichier'];