bugfix for changed format

This commit is contained in:
Martynas Mickevicius
2010-07-27 18:32:47 +03:00
parent 039e30450c
commit 8b7e8257b3

View File

@@ -129,16 +129,16 @@ function PMA_chart_results($data, &$chartSettings, &$chartErrors = array())
// loop through the rows
foreach ($data as $rowKey => $row) {
// loop through the columns in the row
foreach ($row as $valueKey => $value) {
$chartData[$valueKey][] = $value;
}
// if only one column, we need to add
// placeholder data for x axis
if (count($row) == 1) {
$chartData[''][] = $rowKey;
}
// loop through the columns in the row
foreach ($row as $valueKey => $value) {
$chartData[$valueKey][] = $value;
}
}
switch ($chartSettings['type']) {