forked from mirrors/easyappointments
Fixes #100 - Casted the is_unavailable value to an integer.
This commit is contained in:
parent
df34470df4
commit
636f399c91
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue