Initialize unavailability array

This commit is contained in:
Alex Tselegidis 2020-11-21 23:09:27 +02:00
parent d5d4893840
commit f6ee08608a
1 changed files with 2 additions and 0 deletions

View File

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