diff --git a/api/commun.php b/api/commun.php index 76a58a6..f3bbf81 100644 --- a/api/commun.php +++ b/api/commun.php @@ -38,6 +38,7 @@ function donne($parametre) { // Vérifie si le paramètre est donné } function supprimerJeton($jeton) { + global $db; $requete = $db->prepare("DELETE FROM Sessions WHERE jeton=?"); if (!$requete) { retour("erreur_bdd_preparee", ["message" => $db->error]); diff --git a/index.html b/index.html index 0ff4546..d209cf0 100644 --- a/index.html +++ b/index.html @@ -99,9 +99,9 @@ Gestion