Use bool values in database

This commit is contained in:
2025-12-17 21:41:00 +09:00
parent bb5b013d31
commit 1eabf809f0
6 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class Door {
$query = 'INSERT INTO door(time, open) VALUES (:time, :open)';
$statement = $this->pdo->prepare($query);
$statement->bindParam(':time', $time, \PDO::PARAM_STR);
$statement->bindParam(':open', $open, \PDO::PARAM_STR);
$statement->bindParam(':open', $open, \PDO::PARAM_BOOL);
$statement->execute();
$this->removeOld();