diff --git a/db_tracking.php b/db_tracking.php index 92391c3eac..e95a7e0a5f 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -18,7 +18,7 @@ $scripts->addFile('db_structure.js'); /** * If we are not in an Ajax request, then do the common work and show the links etc. */ -include 'libraries/db_common.inc.php'; +require 'libraries/db_common.inc.php'; $url_query .= '&goto=tbl_tracking.php&back=db_tracking.php'; // Get the database structure diff --git a/libraries/display_change_password.lib.php b/libraries/display_change_password.lib.php index 70c594f06d..f6355c76a3 100644 --- a/libraries/display_change_password.lib.php +++ b/libraries/display_change_password.lib.php @@ -89,7 +89,7 @@ function PMA_getHtmlForChangePassword($username, $hostname) { . '' . '' . '
' . ''; return $html; diff --git a/tbl_chart.php b/tbl_chart.php index 5031b63799..94e24854fd 100644 --- a/tbl_chart.php +++ b/tbl_chart.php @@ -15,20 +15,22 @@ 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; } - $sql_limit_to_append = ' LIMIT ' . $_REQUEST['pos'] . ', ' . $_REQUEST['session_max_rows'] . " "; + $sql_limit_to_append = ' LIMIT ' . $_REQUEST['pos'] . ', ' + . $_REQUEST['session_max_rows'] . " "; $sql_query .= $sql_limit_to_append; $data = array(); $result = PMA_DBI_try_query($sql_query); @@ -36,7 +38,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; @@ -171,9 +173,12 @@ url_query = ''; foreach ($keys as $idx => $key) { if (in_array($fields_meta[$idx]->type, $numeric_types)) { if ($idx == $yaxis) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } } }