From e6b0ed7fee722312c2d4e4f20ce8c4ad1b5bd4d1 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 14 Dec 2017 14:33:53 -0700 Subject: [PATCH] Check to make sure we're in a JSON request before accessing it --- timesheet/inc/class.timesheet_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 305d3908a4..0b6fb93bd7 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -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',