From 841db7c8b1eed74225709fd3801f8d176bb892e0 Mon Sep 17 00:00:00 2001 From: tofulm Date: Mon, 4 Apr 2022 16:06:03 +0200 Subject: [PATCH] on filtre l'array pour ne garder que si on a la cle saisie --- gamuform_fonctions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gamuform_fonctions.php b/gamuform_fonctions.php index bd2e54e..4fb6d10 100644 --- a/gamuform_fonctions.php +++ b/gamuform_fonctions.php @@ -31,6 +31,9 @@ function gamuform_recup_saisies(string $objet):array { if (empty($T)) { $T = []; } + $T = array_filter($T, function($d){ + return !empty($d['saisie']); + }); return $T; }