mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix PHP 8.0 TypeError: calendar_tracking::track(): Argument #1 ($data) must be of type array, null given
This commit is contained in:
parent
f74b3be7a8
commit
3534ed9040
@ -1829,12 +1829,13 @@ class calendar_boupdate extends calendar_bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update history
|
// Update history
|
||||||
$event = $this->read($cal_id, $recur_date, $ignore_acl, 'server');
|
if (($event = $this->read($cal_id, $recur_date, $ignore_acl, 'server')))
|
||||||
$tracking = new calendar_tracking($this);
|
{
|
||||||
$tracking->track($event, $old_event);
|
$tracking = new calendar_tracking($this);
|
||||||
|
$tracking->track($event, $old_event);
|
||||||
|
}
|
||||||
// notify the link-class about the update, as other apps may be subscribed to it
|
// notify the link-class about the update, as other apps may be subscribed to it
|
||||||
Link::notify_update('calendar',$event['id'],$event,"update");
|
Link::notify_update('calendar', $cal_id, $event, "update");
|
||||||
}
|
}
|
||||||
return $Ok;
|
return $Ok;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user