Commit 80142ed57664330a264df08184b6bbc50ac972d6

Authored by Geoffrey PREUD'HOMME
1 parent 6895c35d

Compatibilité MySQL 5.5

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
api/commun.php
... ... @@ -72,7 +72,7 @@ function verifierJeton($jeton) {
72 72 $requete->close();
73 73  
74 74 // Augmentation du timer
75   - $requete = $db->prepare("UPDATE Sessions SET date=CURRENT_TIME WHERE jeton=?");
  75 + $requete = $db->prepare("UPDATE Sessions SET date=CURRENT_TIMESTAMP WHERE jeton=?");
76 76 if (!$requete) {
77 77 retour("erreur_bdd_preparee", ["message" => $db->error]);
78 78 }
... ...