mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Merge pull request #1119 from om-ha/patch-1
FIX Providers API incorrect `array_key_exists`
This commit is contained in:
commit
1664ac6f9f
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class Providers extends API_V1_Controller {
|
||||||
throw new Exception('No settings property provided.');
|
throw new Exception('No settings property provided.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! array_key_exists('working_plan', $provider['settings']['working_plan']))
|
if ( ! array_key_exists('working_plan', $provider['settings']))
|
||||||
{
|
{
|
||||||
$provider['settings']['working_plan'] = $this->settings_model->get_setting('company_working_plan');
|
$provider['settings']['working_plan'] = $this->settings_model->get_setting('company_working_plan');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue