Calendar: Fix status notification sometimes had wrong user in $$fullname$$ placeholder

This commit is contained in:
nathan 2022-01-18 14:26:08 -07:00
parent 8eb0f21893
commit 410f882cb7

View File

@ -1069,7 +1069,7 @@ class calendar_boupdate extends calendar_bo
$event_arr = null; $event_arr = null;
$details = $this->_get_event_details(isset($cleared_event) ? $cleared_event : $event, $details = $this->_get_event_details(isset($cleared_event) ? $cleared_event : $event,
$action, $event_arr, $disinvited); $action, $event_arr, $disinvited);
$details['fullname'] = is_numeric($userid) ? Api\Accounts::username($userid) : $fullname; $details['fullname'] = is_numeric($user) ? Api\Accounts::username($user) : $fullname;
$details['to-fullname'] = $fullname; $details['to-fullname'] = $fullname;
$details['to-firstname'] = isset($tfn)? $tfn: ''; $details['to-firstname'] = isset($tfn)? $tfn: '';
$details['to-lastname'] = isset($tln)? $tln: ''; $details['to-lastname'] = isset($tln)? $tln: '';