From f1e30fea1ee1c61819e1083a54ce3ce07915e559 Mon Sep 17 00:00:00 2001 From: Martynas Mickevicius Date: Tue, 6 Jul 2010 17:02:48 +0300 Subject: [PATCH] debug on the demo server --- libraries/chart.lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/chart.lib.php b/libraries/chart.lib.php index e48bf4a84..1c634a8ca 100644 --- a/libraries/chart.lib.php +++ b/libraries/chart.lib.php @@ -46,9 +46,12 @@ function PMA_chart_profiling($data) $chartData[$key] = $value; } + error_reporting(E_ALL); + echo "before new"; $chart = new PMA_pChart_Pie( __('Query execution time comparison (in microseconds)'), $chartData); + echo "after new"; echo $chart->toString(); } @@ -105,7 +108,7 @@ function PMA_chart_results($data, &$chartSettings) foreach ($data as $row) { // save the label - // use the same as the value to get rid of duplicate results + // use the same value as the key and the value to get rid of duplicate results $chartData[$xAxisKey][$row[$xAxisKey]] = $row[$xAxisKey]; // make sure to set value to every serie