forked from extern/egroupware
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
|
// check if recurrence enddate was adjusted
|
||||||
if(isset($event['recur_enddate']))
|
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
|
// recurrences need to be truncated
|
||||||
if((int)$event['recur_enddate'] > 0 &&
|
if((int)$event['recur_enddate'] > 0 &&
|
||||||
((int)$old_repeats['recur_enddate'] == 0 || (int)$old_repeats['recur_enddate'] > (int)$event['recur_enddate'])
|
((int)$old_repeats['recur_enddate'] == 0 || (int)$old_repeats['recur_enddate'] > (int)$event['recur_enddate'])
|
||||||
|
Loading…
Reference in New Issue
Block a user