diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index 1758a90871..b2e3952f39 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -439,7 +439,8 @@ class calendar_uilist extends calendar_ui if($params['view'] && $params['view'] == 'listview' && Api\Json\Response::isJSONResponse()) { Api\Json\Response::get()->call('app.calendar.set_app_header', - (count($search_params['users']) == 1 ? $this->bo->participant_name($search_params['users'][0]).': ' : '') . + (!empty($search_params['users']) && count($search_params['users']) === 1 ? + $this->bo->participant_name($search_params['users'][0]).': ' : '') . $label); } foreach((array) $this->bo->search($search_params, !empty($col_filter) ? $col_filter : null) as $event)