mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-28 17:42:27 +03:00
Unset foreach variable
This commit is contained in:
parent
5d823985de
commit
6e8778919e
1 changed files with 4 additions and 1 deletions
|
@ -621,8 +621,9 @@ class Calendar extends EA_Controller
|
||||||
$record_id = request('record_id');
|
$record_id = request('record_id');
|
||||||
|
|
||||||
$filter_type = request('filter_type');
|
$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([
|
json_response([
|
||||||
'appointments' => [],
|
'appointments' => [],
|
||||||
'unavailabilities' => [],
|
'unavailabilities' => [],
|
||||||
|
@ -676,6 +677,8 @@ class Calendar extends EA_Controller
|
||||||
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer']);
|
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($appointment);
|
||||||
|
|
||||||
// Get unavailability periods (only for provider).
|
// Get unavailability periods (only for provider).
|
||||||
$response['unavailabilities'] = [];
|
$response['unavailabilities'] = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue