Set the default value of the working plan exceptions to be an array
This commit is contained in:
parent
d8d5ffe6b1
commit
29bd6dd23a
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Availability {
|
|||
// Get the provider's working plan exceptions.
|
||||
$working_plan_exceptions_json = $provider['settings']['working_plan_exceptions'];
|
||||
|
||||
$working_plan_exceptions = $working_plan_exceptions_json ? json_decode($provider['settings']['working_plan_exceptions'], TRUE) : NULL;
|
||||
$working_plan_exceptions = $working_plan_exceptions_json ? json_decode($provider['settings']['working_plan_exceptions'], TRUE) : [];
|
||||
|
||||
$escaped_provider_id = $this->CI->db->escape($provider['id']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue