diff --git a/services/nginx/app/objects/bookings_o.php b/services/nginx/app/objects/bookings_o.php index 64f57253..573347f6 100644 --- a/services/nginx/app/objects/bookings_o.php +++ b/services/nginx/app/objects/bookings_o.php @@ -200,6 +200,7 @@ class bookings_o extends db $washCertificateStatus = $db->escape_string($washCertificateStatus); $washCertificateUrl = $db->escape_string($washCertificateUrl); $status = $db->escape_string($status); + $pickup_bool = (int)$pickup_bool; // Check if the entry already exists $sql = "SELECT * FROM $this->table WHERE id = $id"; $result = $db->query($sql); diff --git a/services/nginx/app/routes/bookingsRoute.php b/services/nginx/app/routes/bookingsRoute.php index d4ef953c..f5eda372 100644 --- a/services/nginx/app/routes/bookingsRoute.php +++ b/services/nginx/app/routes/bookingsRoute.php @@ -232,7 +232,7 @@ class bookingsRoute (string)$booking['washCertificateEmail'], (string)$booking['date'], (string)$booking['department'], - (string)$booking['pickup_bool'], + (int)$booking['pickup_bool'], (string)$booking['notes'], (string)$booking['washCertificateStatus'], (string)$booking['washCertificateUrl'], @@ -530,4 +530,4 @@ class bookingsRoute ] ); } -} \ No newline at end of file +}