Skip to content

Commit

Permalink
fix count(): Argument #1 ($value) must be of type Countable|array, nu…
Browse files Browse the repository at this point in the history
…ll given
  • Loading branch information
ralfbecker committed Nov 13, 2023
1 parent 83909cd commit 61ed912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calendar/inc/class.calendar_boupdate.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,8 @@ function save($event,$ignore_acl=false,$updateTS=true)
$event['created'] = $save_event['created'] = $this->now;
$event['creator'] = $save_event['creator'] = $this->user;
}
$set_recurrences = $old_event ? abs(Api\DateTime::to($event['recur_enddate'] ?? null, 'utc') - Api\DateTime::to($old_event['recur_enddate'] ?? null, 'utc')) > 1 || count($old_event['recur_exception']) != count($event['recur_exception']) : false;
$set_recurrences = $old_event ? abs(Api\DateTime::to($event['recur_enddate'] ?? null, 'utc') - Api\DateTime::to($old_event['recur_enddate'] ?? null, 'utc')) > 1 ||
count($old_event['recur_exception'] ?? []) != count($event['recur_exception'] ?? []) : false;
$set_recurrences_start = 0;
if (($cal_id = $this->so->save($event,$set_recurrences,$set_recurrences_start,0,$event['etag'])) && $set_recurrences && $event['recur_type'] != MCAL_RECUR_NONE)
{
Expand Down

0 comments on commit 61ed912

Please sign in to comment.