diff --git a/paquet.xml b/paquet.xml index 738df5467b53b6d3dcd88b66bc2ea0a7f31608d1..951514514f1bdb190fe320f9d94d69b6eb61720a 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ <paquet prefix="formidable" categorie="communication" - version="4.0.3" + version="4.0.4" etat="stable" compatibilite="[3.1.0;3.2.*]" logo="images/formidable-64.png" diff --git a/traiter/email.php b/traiter/email.php index 29ce5ceb89cde2d7b2f8eabc81061d09e9a15b53..0554415202da1e6b80156193828dd9a7cdff0fc6 100644 --- a/traiter/email.php +++ b/traiter/email.php @@ -10,7 +10,11 @@ include_spip('inc/formidable_fichiers'); function traiter_email_dist($args, $retours) { // Vérifier si on doit envoyer en cas de modification de réponses - if (isset($retours['modification_reponse']) and $retours['modification_reponse'] == true and isset($args['options']['modification_reponse'])) { + if (isset($retours['modification_reponse']) + and $retours['modification_reponse'] == true + and isset($args['options']['modification_reponse']) + and $args['options']['modification_reponse'] == 'on' + ) { $retours['traitements']['email'] = true; return $retours; }