From ed58a102fd4312d147d52e3257406a4fd4cefd12 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Mon, 9 Jan 2023 07:50:04 +0100 Subject: [PATCH] form texte inutile --- module/form/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/form/form.php b/module/form/form.php index 948fec8..ec626d6 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -494,7 +494,7 @@ class form extends common { // Préparation des données pour la création dans la base $data[$this->getData(['module', $this->getUrl(0), 'input', $index, 'name'])] = $value; // Préparation des données pour le mail - $content .= '' . $this->getData(['module', $this->getUrl(0), 'input', $index, 'name']) . ' : ' . $value . '
'; + if( $value !== '') $content .= '' . $this->getData(['module', $this->getUrl(0), 'input', $index, 'name']) . ' : ' . $value . '
'; } // Bot présumé, la page sera actualisée avec l'affichage du captcha