From 4491a5c7ef05cc6356ad177ee04071e15d475462 Mon Sep 17 00:00:00 2001 From: antux18 Date: Sun, 1 Sep 2024 21:42:33 +0200 Subject: [PATCH] Erreur de type. --- require/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/require/database.php b/require/database.php index 29aed1c..d89b898 100644 --- a/require/database.php +++ b/require/database.php @@ -68,7 +68,7 @@ return !empty($this->getArticle($id)); } - public function checkPuzzle(int $id, int $code) { + public function checkPuzzle(int $id, string $code) { $stmt = $this->pdo_article->prepare("SELECT * FROM puzzles WHERE (id == :id AND code == :code)"); $stmt->bindValue(":id", $id); $stmt->bindValue(":code", $code);