mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Calendar: Avoid error if $userid is not numeric
This commit is contained in:
parent
0a6dbbcd28
commit
4bf0258f14
@ -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: '';
|
||||
|
Loading…
Reference in New Issue
Block a user