From f6a7a63feb36c734953381a33d2c8eb512aa0c58 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 15 Dec 2021 14:50:43 -0700 Subject: [PATCH] Calendar: Avoid error if $userid is not numeric --- calendar/inc/class.calendar_boupdate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 8f91e8861e..323b149c43 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1069,7 +1069,7 @@ class calendar_boupdate extends calendar_bo $event_arr = null; $details = $this->_get_event_details(isset($cleared_event) ? $cleared_event : $event, $action, $event_arr, $disinvited); - $details['fullname'] = Api\Accounts::username($userid); + $details['fullname'] = is_numeric($userid) ? Api\Accounts::username($userid) : $fullname; $details['to-fullname'] = $fullname; $details['to-firstname'] = isset($tfn)? $tfn: ''; $details['to-lastname'] = isset($tln)? $tln: '';