Skip to content

Commit

Permalink
Coding style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed Jan 27, 2013
1 parent 467c065 commit 24275dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tbl_chart.php
Expand Up @@ -60,9 +60,11 @@

$response = PMA_Response::getInstance();
// Throw error if no sql query is set
if(! isset($sql_query) || $sql_query == '') {
if (! isset($sql_query) || $sql_query == '') {
$response->isSuccess(false);
$response->addHTML(PMA_Message::error(__('No SQL query was set to fetch data.')));
$response->addHTML(
PMA_Message::error(__('No SQL query was set to fetch data.'))
);
exit;
}
$header = $response->getHeader();
Expand Down Expand Up @@ -201,7 +203,7 @@
}
}

if(! $numeric_fields_present) {
if (! $numeric_fields_present) {
$response->isSuccess(false);
$response->addJSON('message', __('No numeric fields present in the table to plot.'));
exit;
Expand Down

0 comments on commit 24275dd

Please sign in to comment.