Set the default value of the working plan exceptions to be an array

This commit is contained in:
Alex Tselegidis 2023-07-29 11:59:41 +02:00
parent d8d5ffe6b1
commit 29bd6dd23a

View file

@ -96,7 +96,7 @@ class Availability {
// Get the provider's working plan exceptions. // Get the provider's working plan exceptions.
$working_plan_exceptions_json = $provider['settings']['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']); $escaped_provider_id = $this->CI->db->escape($provider['id']);