Erreur de type.
This commit is contained in:
parent
cd84b319e7
commit
4491a5c7ef
@ -68,7 +68,7 @@
|
|||||||
return !empty($this->getArticle($id));
|
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 = $this->pdo_article->prepare("SELECT * FROM puzzles WHERE (id == :id AND code == :code)");
|
||||||
$stmt->bindValue(":id", $id);
|
$stmt->bindValue(":id", $id);
|
||||||
$stmt->bindValue(":code", $code);
|
$stmt->bindValue(":code", $code);
|
||||||
|
Loading…
Reference in New Issue
Block a user