From 9738ab84f2ffaf12244774d6578c86c9bea93707 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net>
Date: Sat, 16 Sep 2023 14:29:45 +0200
Subject: [PATCH] =?UTF-8?q?oups:=20un=20and=20qui=20avait=20saut=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 traiter/email.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traiter/email.php b/traiter/email.php
index 934cc5ba..64b7c8e7 100644
--- a/traiter/email.php
+++ b/traiter/email.php
@@ -11,7 +11,7 @@ function traiter_email_dist($args, $retours) {
 	// Vérifier si on doit envoyer en cas de modification de réponses
 	if (
 			($retours['modification_reponse'] ?? '') == true
-			($args['options']['modification_reponse'] ?? '') == 'on'
+			&& ($args['options']['modification_reponse'] ?? '') == 'on'
 	) {
 		$retours['traitements']['email'] = true;
 		return $retours;
-- 
GitLab