Skip to content

Commit

Permalink
PHP 8.1 support (alextselegidis#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Feb 23, 2022
1 parent 548eb2b commit 4ab8bf4
Show file tree
Hide file tree
Showing 7 changed files with 658 additions and 40 deletions.
4 changes: 3 additions & 1 deletion application/libraries/Availability.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ protected function get_available_periods(
$working_plan = json_decode($provider['settings']['working_plan'], TRUE);

// Get the provider's working plan exceptions.
$working_plan_exceptions = json_decode($provider['settings']['working_plan_exceptions'], TRUE);
$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;

$conditions = [
'id_users_provider' => $provider['id'],
Expand Down
Loading

0 comments on commit 4ab8bf4

Please sign in to comment.