Fixes #100 - Casted the is_unavailable value to an integer.

This commit is contained in:
Alex Tselegidis 2016-01-09 22:22:01 +01:00
parent df34470df4
commit 636f399c91
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ class Appointments extends CI_Controller {
$customer_id = $this->customers_model->add($customer); $customer_id = $this->customers_model->add($customer);
$appointment['id_users_customer'] = $customer_id; $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['id'] = $this->appointments_model->add($appointment);
$appointment['hash'] = $this->appointments_model->get_value('hash', $appointment['id']); $appointment['hash'] = $this->appointments_model->get_value('hash', $appointment['id']);