This commit is contained in:
Christophe 2020-04-29 23:27:06 +02:00
parent 8bc5c54646
commit c9cff9283b

View file

@ -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'];