data overflow fix

This commit is contained in:
Martynas Mickevicius
2010-07-08 20:29:27 +03:00
parent 48f2caccae
commit cd1cbce4ef
2 changed files with 2 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ function PMA_chart_status($data)
//$chart = new PMA_OFC_Pie(__('Query type'), $chartData, $options);
$chart = new PMA_pChart_Pie(
__('Query statistics'),
array_slice($chartData, 0, 20, true));
array_slice($chartData, 0, 18, true));
$chartCode = $chart->toString();
PMA_handle_chart_err($chart->getErrors());
echo $chartCode;
@@ -55,7 +55,7 @@ function PMA_chart_profiling($data)
$chart = new PMA_pChart_Pie(
__('Query execution time comparison (in microseconds)'),
$chartData);
array_slice($chartData, 0, 18, true));
$chartCode = $chart->toString();
PMA_handle_chart_err($chart->getErrors());
echo $chartCode;

View File

@@ -36,7 +36,6 @@ class PMA_Chart
'#825119',
'#238C74',
'#4C489B',
'#1D674A',
'#87C9BF',
),