mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 03:12:39 +03:00
Unset foreach variable
This commit is contained in:
parent
86cd5f2285
commit
6576a9207d
1 changed files with 4 additions and 1 deletions
|
@ -619,8 +619,9 @@ class Calendar extends EA_Controller
|
|||
$record_id = request('record_id');
|
||||
|
||||
$filter_type = request('filter_type');
|
||||
$is_all = request('record_id') === FILTER_TYPE_ALL;
|
||||
|
||||
if (!$filter_type && $record_id !== FILTER_TYPE_ALL) {
|
||||
if (!$filter_type && !$is_all) {
|
||||
json_response([
|
||||
'appointments' => [],
|
||||
'unavailabilities' => [],
|
||||
|
@ -674,6 +675,8 @@ class Calendar extends EA_Controller
|
|||
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer']);
|
||||
}
|
||||
|
||||
unset($appointment);
|
||||
|
||||
// Get unavailability periods (only for provider).
|
||||
$response['unavailabilities'] = [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue