diff options
author | Dhananjay Nakrani <dhananjaynakrani@gmail.com> | 2014-06-14 20:11:09 +0400 |
---|---|---|
committer | Dhananjay Nakrani <dhananjaynakrani@gmail.com> | 2014-06-16 10:20:55 +0400 |
commit | 83d63d23ea7c2aa7cfe032fe1d29229954e9598c (patch) | |
tree | c0104f17c124eff5b8566d077952089635ef4130 /error_report.php | |
parent | e65b678386afaa758dcaadf5571fb566e4b57a64 (diff) |
Fix coding style issues.
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Diffstat (limited to 'error_report.php')
-rw-r--r-- | error_report.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/error_report.php b/error_report.php index ac74510dab..756fa2f4a0 100644 --- a/error_report.php +++ b/error_report.php @@ -19,18 +19,19 @@ $response = PMA_Response::getInstance(); if (isset($_REQUEST['send_error_report']) && ($_REQUEST['send_error_report'] == true - || $_REQUEST['send_error_report'] == '1') + || $_REQUEST['send_error_report'] == '1') ) { if ($_REQUEST['exception_type'] == 'php') { /** * 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. + * If reporting is done in some time interval, + * just clear them & clear json data too. */ if (isset($_SESSION['prev_error_subm_time']) && isset($_SESSION['error_subm_count']) - && $_SESSION['error_subm_count'] >= 3 // allow maximum 4 attempts - && ($_SESSION['prev_error_subm_time']-time()) <= 3000 // in 3 seconds + && $_SESSION['error_subm_count'] >= 3 + && ($_SESSION['prev_error_subm_time']-time()) <= 3000 ) { $_SESSION['error_subm_count'] = 0; $_SESSION['prev_errors'] = ''; @@ -53,13 +54,14 @@ if (isset($_REQUEST['send_error_report']) $success = false; } else { $decoded_response = json_decode($server_response, true); - $success = !empty($decoded_response) ? $decoded_response["success"] : false; + $success = !empty($decoded_response) ? + $decoded_response["success"] : false; } /* Message to show to the user */ if ($success) { if ((isset($_REQUEST['automatic']) - && $_REQUEST['automatic'] === "true") + && $_REQUEST['automatic'] === "true") || $GLOBALS['cfg']['SendErrorReports'] == 'always' ) { $msg = __( |