mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Calendar: Avoid error if $userid is not numeric
This commit is contained in:
parent
a027649ae5
commit
f6a7a63feb
@ -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