Initialize unavailability array

This commit is contained in:
Alex Tselegidis 2020-11-21 23:09:27 +02:00
parent d5d4893840
commit f6ee08608a

View file

@ -215,6 +215,8 @@ class Backend_api extends EA_Controller {
} }
// Get unavailable periods (only for provider). // Get unavailable periods (only for provider).
$response['unavailables'] = [];
if ($this->input->post('filter_type') == FILTER_TYPE_PROVIDER) if ($this->input->post('filter_type') == FILTER_TYPE_PROVIDER)
{ {
$where_clause = $where_id . ' = ' . $record_id . ' $where_clause = $where_id . ' = ' . $record_id . '