diff options
author | Dhananjay Nakrani <dhananjaynakrani@gmail.com> | 2014-06-10 21:29:30 +0400 |
---|---|---|
committer | Dhananjay Nakrani <dhananjaynakrani@gmail.com> | 2014-06-16 10:20:54 +0400 |
commit | bc76f04ce73965bd8dfd2dd8022588d0ebf62cbf (patch) | |
tree | 3c761873242ba70ea11b53a336e37d5b2e8c365b /error_report.php | |
parent | 30d1a03ab625c1de17c87ad2a9cbb4aa0d9b3d55 (diff) |
Remove trailing whitespaces.
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Diffstat (limited to 'error_report.php')
-rw-r--r-- | error_report.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/error_report.php b/error_report.php index ca81dd7721..719756ca96 100644 --- a/error_report.php +++ b/error_report.php @@ -10,7 +10,7 @@ require_once 'libraries/error_report.lib.php'; $response = PMA_Response::getInstance(); -if (isset($_REQUEST['exception_type']) +if (isset($_REQUEST['exception_type']) && $_REQUEST['exception_type'] == 'js' ) { if (isset($_REQUEST['send_error_report']) @@ -73,14 +73,14 @@ if (isset($_REQUEST['exception_type']) } else { $response->addHTML(PMA_getErrorReportForm()); } -} elseif (isset($_REQUEST['exception_type']) +} elseif (isset($_REQUEST['exception_type']) && $_REQUEST['exception_type'] == 'php' ) { if (isset($_REQUEST['send_error_report']) && $_REQUEST['send_error_report'] == '1' ) { /** - * Prevent inifnite error submission. + * Prevent inifnite error submission. * Happens in case error submissions fails. * If reporting is done in some time interval, just clear them & clear json data too. */ @@ -112,7 +112,7 @@ if (isset($_REQUEST['exception_type']) $decoded_response = json_decode($server_response, true); $success = !empty($decoded_response) ? $decoded_response["success"] : false; } - + if ($GLOBALS['cfg']['SendErrorReports'] == 'ask') { if ($success) { $errSubmitMsg = PMA_Message::error( |