mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix PHP 8.0 TypeError: Unsupported operand types: EGroupware\Api\DateTime + int
This commit is contained in:
parent
dba803fff5
commit
a7796d8f27
@ -1663,6 +1663,10 @@ ORDER BY cal_user_type, cal_usre_id
|
||||
// check if recurrence enddate was adjusted
|
||||
if(isset($event['recur_enddate']))
|
||||
{
|
||||
if (is_object($event['recur_enddate']))
|
||||
{
|
||||
$event['recur_enddate'] = Api\DateTime::user2server($event['recur_enddate'], 'ts');
|
||||
}
|
||||
// recurrences need to be truncated
|
||||
if((int)$event['recur_enddate'] > 0 &&
|
||||
((int)$old_repeats['recur_enddate'] == 0 || (int)$old_repeats['recur_enddate'] > (int)$event['recur_enddate'])
|
||||
|
Loading…
Reference in New Issue
Block a user