mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
Check to make sure we're in a JSON request before accessing it
This commit is contained in:
parent
6e9a785a68
commit
b6e4931902
@ -699,7 +699,7 @@ class timesheet_ui extends timesheet_bo
|
||||
}
|
||||
}
|
||||
// Update start / end dates for custom
|
||||
if($query_in['filter'] != 'custom')
|
||||
if($query_in['filter'] != 'custom' && Api\Json\Response::isJSONResponse())
|
||||
{
|
||||
Api\Json\Response::get()->call(
|
||||
'app.timesheet.update_timespan',
|
||||
|
Loading…
Reference in New Issue
Block a user