diff --git a/formulaires/formidable.php b/formulaires/formidable.php index 9cad839180f54c7bf5a890dc0f4dd3237ddf55f4..69b06bf6202bc83c7d29391c8e9b5d4dd415177c 100644 --- a/formulaires/formidable.php +++ b/formulaires/formidable.php @@ -422,6 +422,7 @@ function formulaires_formidable_traiter_dist($id, $valeurs = array(), $id_formul $retours['traitements'] = array(); $erreur_texte = ''; + // Si on a des traitements if (is_array($traitements) and !empty($traitements)) { $maxiter = 5; @@ -433,6 +434,7 @@ function formulaires_formidable_traiter_dist($id, $valeurs = array(), $id_formul if ($appliquer_traitement = charger_fonction($type_traitement, 'traiter/', true)) { spip_log("Application du traitement $type_traitement", 'formidable'._LOG_INFO); $retours['scripts_ok'] = ''; + $retours['message_ok'] = ''; $retours = $appliquer_traitement( array( 'formulaire' => $formulaire, @@ -451,7 +453,6 @@ function formulaires_formidable_traiter_dist($id, $valeurs = array(), $id_formul ) { $messages_ok .= wrap($retours['message_ok'],'<div class="message_retour_traitement message_retour_'.$type_traitement.'">'); } - $retours['message_ok'] = ''; // Inutile de les exposer aux autres traitements $messages_ok .= $retours['scripts_ok']; } else { // traitement introuvable, ne pas retenter