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