mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Calendar - check for JSON response before using it
This commit is contained in:
parent
90a5e91fc7
commit
1bef3549af
@ -385,7 +385,7 @@ class calendar_uilist extends calendar_ui
|
||||
}
|
||||
// Allow private to stay for all viewed owners, even if in separate calendars
|
||||
$search_params['private_allowed'] = (array)$params['selected_owners'] + (array)$search_params['users'];
|
||||
|
||||
|
||||
if ($params['col_filter'])
|
||||
{
|
||||
$col_filter = array();
|
||||
@ -401,7 +401,7 @@ class calendar_uilist extends calendar_ui
|
||||
|
||||
// App header is mostly taken care of on the client side, but here we update
|
||||
// it to match changing list filters
|
||||
if($params['view'] && $params['view'] == 'listview')
|
||||
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]).': ' : '') .
|
||||
|
Loading…
Reference in New Issue
Block a user