From 636f399c91c8fbb2be9dd357698005bf24c39e00 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 9 Jan 2016 22:22:01 +0100 Subject: [PATCH] Fixes #100 - Casted the is_unavailable value to an integer. --- src/application/controllers/appointments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/controllers/appointments.php b/src/application/controllers/appointments.php index 72d56bb6..139522f4 100755 --- a/src/application/controllers/appointments.php +++ b/src/application/controllers/appointments.php @@ -360,7 +360,7 @@ class Appointments extends CI_Controller { $customer_id = $this->customers_model->add($customer); $appointment['id_users_customer'] = $customer_id; - + $appointment['is_unavailable'] = (int)$appointment['is_unavailable']; // needs to be type casted $appointment['id'] = $this->appointments_model->add($appointment); $appointment['hash'] = $this->appointments_model->get_value('hash', $appointment['id']);