Skip to content

Commit 095c856

Browse files
committed
correction de la modification d'inscription
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.
1 parent 7e1c06a commit 095c856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/Afup/Forum/Inscriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function modifierInscription($id, $reference, $type_inscription, $civilite, $nom
286286
$requete .= ' facturation=' . $this->_bdd->echapper($facturation) . ',';
287287
$requete .= ' transport_mode=' . $this->_bdd->echapper($transportMode) . ',';
288288
$requete .= ' transport_distance=' . $this->_bdd->echapper($transportDistance);
289-
$requete .= 'WHERE';
289+
$requete .= ' WHERE';
290290
$requete .= ' id=' . $id;
291291

292292
$this->modifierEtatInscription($reference, $etat);

0 commit comments

Comments
 (0)