Erreur de type.

This commit is contained in:
antux18 2024-09-01 21:42:33 +02:00
parent cd84b319e7
commit 4491a5c7ef

View File

@ -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);