mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
fix PHP 8.0 Unsupported operand types: EGroupware\Api\DateTime + int
This commit is contained in:
parent
a125be6074
commit
c6761665cf
@ -1667,6 +1667,10 @@ ORDER BY cal_user_type, cal_usre_id
|
||||
{
|
||||
$event['recur_enddate'] = Api\DateTime::user2server($event['recur_enddate'], 'ts');
|
||||
}
|
||||
if (is_object($old_repeats['recur_enddate']))
|
||||
{
|
||||
$old_repeats['recur_enddate'] = Api\DateTime::user2server($old_repeats['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