From 29bd6dd23a9437361584b293376bafb77f4059b6 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 29 Jul 2023 11:59:41 +0200 Subject: [PATCH] Set the default value of the working plan exceptions to be an array --- application/libraries/Availability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Availability.php b/application/libraries/Availability.php index 3854dc0e..8d741838 100644 --- a/application/libraries/Availability.php +++ b/application/libraries/Availability.php @@ -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']);