Skip to content

Commit

Permalink
Fixed linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
m0hamed committed Nov 17, 2013
1 parent f82e321 commit 38fea8e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion error_report.php
Expand Up @@ -14,7 +14,14 @@
&& $_REQUEST['send_error_report'] == true
) {
$server_response = PMA_sendErrorReport(PMA_getReportData(false));
$success = $server_response === false ? false : json_decode($server_response, true)["success"];

if ($server_response === false) {
$success = false;
} else {
$decoded_response = json_decode($server_response, true);
$success = !empty($decoded_response) ? $decoded_response["success"] : false;
}

if ($_REQUEST['automatic'] === "true") {
if ($success) {
$response->addJSON(
Expand Down

0 comments on commit 38fea8e

Please sign in to comment.