Check to make sure we're in a JSON request before accessing it

This commit is contained in:
nathangray 2017-12-14 14:33:53 -07:00
parent 6e9a785a68
commit b6e4931902

View File

@ -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',