From 095c856f305cfd67e3ad2747e1983332f1188fb1 Mon Sep 17 00:00:00 2001 From: Adrien Gallou Date: Sun, 8 Dec 2024 16:28:38 +0100 Subject: [PATCH] correction de la modification d'inscription MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nous avions une erreur 500 lors de la modification d'une inscription. Cela car il manquait un espace avant le where. En effet, nous nous retrouvions avec une requĂȘte comme celui-ci : ``` facturation='0', transport_mode=10, transport_distance=0WHERE id=16411 ``` On corrige cela en ajoutant un espace. --- sources/Afup/Forum/Inscriptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Afup/Forum/Inscriptions.php b/sources/Afup/Forum/Inscriptions.php index 2f1934566..27a2c96b2 100644 --- a/sources/Afup/Forum/Inscriptions.php +++ b/sources/Afup/Forum/Inscriptions.php @@ -286,7 +286,7 @@ function modifierInscription($id, $reference, $type_inscription, $civilite, $nom $requete .= ' facturation=' . $this->_bdd->echapper($facturation) . ','; $requete .= ' transport_mode=' . $this->_bdd->echapper($transportMode) . ','; $requete .= ' transport_distance=' . $this->_bdd->echapper($transportDistance); - $requete .= 'WHERE'; + $requete .= ' WHERE'; $requete .= ' id=' . $id; $this->modifierEtatInscription($reference, $etat);