From b1431bae58273a85b2cb101cf7e00cf5ad3fdb85 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Tue, 15 Jan 2013 14:29:16 +0100 Subject: [PATCH] improve coding style : correct syntax with if-then-else statements --- tbl_chart.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tbl_chart.php b/tbl_chart.php index 5031b63799..b866c4a1e6 100644 --- a/tbl_chart.php +++ b/tbl_chart.php @@ -15,14 +15,13 @@ require_once 'libraries/common.inc.php'; * Execute the query and return the result */ -if(isset($_REQUEST['ajax_request']) && isset($_REQUEST['pos']) && isset($_REQUEST['session_max_rows'])) { +if (isset($_REQUEST['ajax_request']) && isset($_REQUEST['pos']) && isset($_REQUEST['session_max_rows'])) { $response = PMA_Response::getInstance(); if (strlen($GLOBALS['table']) && strlen($GLOBALS['db'])) { include './libraries/tbl_common.inc.php'; - } - else { + } else { $response->isSuccess(false); $response->addJSON('message', __('Error')); exit; @@ -36,7 +35,7 @@ if(isset($_REQUEST['ajax_request']) && isset($_REQUEST['pos']) && isset($_REQUES $data[] = $row; } - if(empty($data)) { + if (empty($data)) { $response->isSuccess(false); $response->addJSON('message', __('No data to display')); exit;