diff options
author | Michal Čihař <michal@cihar.com> | 2013-11-18 18:01:53 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2013-11-18 18:01:53 +0400 |
commit | aefabf53359445b7696db374c6c4b7ed8998b231 (patch) | |
tree | 2858b1d65075d0e546a87ecfd4eb7f5c320ec30e /error_report.php | |
parent | 240a6fd93ffdc3fa70edf26c85d60087ffb7f3b3 (diff) |
Check whether variable is set
Diffstat (limited to 'error_report.php')
-rw-r--r-- | error_report.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/error_report.php b/error_report.php index 430818d9e9..bb1a1420dc 100644 --- a/error_report.php +++ b/error_report.php @@ -22,7 +22,9 @@ if (isset($_REQUEST['send_error_report']) $success = !empty($decoded_response) ? $decoded_response["success"] : false; } - if ($_REQUEST['automatic'] === "true") { + if (isset($_REQUEST['automatic']) + && $_REQUEST['automatic'] === "true" + ) { if ($success) { $response->addJSON( 'message', |