Skip to content
Extraits de code Groupes Projets
Valider d7864990 rédigé par salixor's avatar salixor
Parcourir les fichiers

Correction d'un problème lors d'une déconnexion pendant la commande

parent 051a0faf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -91,7 +91,7 @@ if ($current_commande['food_id'] != 0) {
$commande = implode(PHP_EOL, $commandes);
$empty = empty($commande);
if ($date_fin_seconde_commande_battement > time()) {
if ($date_fin_seconde_commande_battement > time() && $consumer->is_authenticated()) {
if ($submitted && !$empty) {
$query = "INSERT INTO obigdelice_commandes(arise_id, arise_pseudo, commande, njv_numero)
VALUES(\"".$identifiant."\", \"".$pseudo."\", \"".$commande."\", ".$NJV_NUMERO.")";
......@@ -147,6 +147,13 @@ if ($date_fin_seconde_commande_battement > time()) {
<strong>📅 Les commandes sont fermées !</strong>
</div>';
}
if (!$consumer->is_authenticated() && $submitted && !$empty) {
echo '
<div class="alert alert-danger">
<strong>Une erreur est survenue lors de la commande : vous n\'êtes plus connecté. Veuillez réessayer.</strong>
</div>';
}
?>
<?php if ($date_fin_seconde_commande_battement > time()) { ?>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter