Merge pull request #1119 from om-ha/patch-1

FIX Providers API incorrect `array_key_exists`
This commit is contained in:
Alex Tselegidis 2021-10-18 13:58:42 +02:00 committed by GitHub
commit 1664ac6f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ class Providers extends API_V1_Controller {
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');
}