';
$i=0;
foreach ($section_links as $link_name => $link_url) {
- if($i > 0) echo ', ';
+ if ($i > 0) echo ', ';
if ('doc' == $link_name) {
echo PMA_showMySQLDocu($link_url, $link_url);
} else {
@@ -526,7 +527,7 @@ function printQueryStatistics() {
echo PMA_formatNumber( $total_queries * 60 / $server_status['Uptime'], 0);
echo '
';
- if($total_queries / $server_status['Uptime'] >= 1) {
+ if ($total_queries / $server_status['Uptime'] >= 1) {
echo 'ø'.__('per second').':';
echo PMA_formatNumber( $total_queries / $server_status['Uptime'], 0);
?>
@@ -569,9 +570,9 @@ function printQueryStatistics() {
// For the percentage column, use Questions - Connections, because
// the number of connections is not an item of the Query types
// but is included in Questions. Then the total of the percentages is 100.
- $name = str_replace(Array('Com_', '_'), Array('', ' '), $name);
+ $name = str_replace(array('Com_', '_'), array('', ' '), $name);
- if($value < $query_sum * 0.02)
+ if ($value < $query_sum * 0.02)
$other_sum += $value;
else $chart_json[$name] = $value;
?>
@@ -591,7 +592,7 @@ function printQueryStatistics() {
0)
+ if ($other_sum > 0)
$chart_json[__('Other')] = $other_sum;
echo json_encode($chart_json);
@@ -807,12 +808,12 @@ function printServerTraffic() {
$v) {
$k = $k !== 'DB'
- ? $k = ucfirst(strtolower($k))
+ ? ucfirst(strtolower($k))
: 'db';
$process[$k] = $v;
}