Skip to content

Commit

Permalink
correction de la modification d'inscription
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
agallou committed Dec 8, 2024
1 parent 7e1c06a commit 095c856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Afup/Forum/Inscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 095c856

Please sign in to comment.