diff --git a/gamuform_fonctions.php b/gamuform_fonctions.php index 64feb0e..33598cd 100644 --- a/gamuform_fonctions.php +++ b/gamuform_fonctions.php @@ -62,6 +62,11 @@ function gamuform_recup_tableau_objet(string $objet, bool $all = true):array { if (empty($T)) { $T = []; } + // on filtre les entrées vides, qui peuvent arriver si on on des autorisations + $T = array_filter($T, function($d){ + return !empty($d); + }); + if (!$all) { $T = array_filter($T, function($d){ return !empty($d['saisie']);