From f6ee08608a8043674a78ebc52175f1260a4895bc Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 21 Nov 2020 23:09:27 +0200 Subject: [PATCH] Initialize unavailability array --- application/controllers/Backend_api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Backend_api.php b/application/controllers/Backend_api.php index 6f1e7a7e..90ba0b68 100755 --- a/application/controllers/Backend_api.php +++ b/application/controllers/Backend_api.php @@ -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 . '