mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Check to make sure we're in a JSON request before accessing it
This commit is contained in:
parent
1666caaf10
commit
e6b0ed7fee
@ -699,7 +699,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Update start / end dates for custom
|
// 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(
|
Api\Json\Response::get()->call(
|
||||||
'app.timesheet.update_timespan',
|
'app.timesheet.update_timespan',
|
||||||
|
Loading…
Reference in New Issue
Block a user