From a513058f9fd526c22fc1c492503944b94200d145 Mon Sep 17 00:00:00 2001 From: Fabian Becker <halfdan@xnorfz.de> Date: Tue, 12 Mar 2013 18:28:10 +0000 Subject: [PATCH] Fix error for wrong use of reset(). --- core/ViewDataTable/GenerateGraphData/ChartEvolution.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/ViewDataTable/GenerateGraphData/ChartEvolution.php b/core/ViewDataTable/GenerateGraphData/ChartEvolution.php index e60ddcfdde..a505cff5dc 100644 --- a/core/ViewDataTable/GenerateGraphData/ChartEvolution.php +++ b/core/ViewDataTable/GenerateGraphData/ChartEvolution.php @@ -193,7 +193,8 @@ class Piwik_ViewDataTable_GenerateGraphData_ChartEvolution extends Piwik_ViewDat $this->view->setAxisYUnits($yAxisLabelToUnit); $countGraphElements = $this->dataTable->getRowsCount(); - $firstDatatable = reset($this->dataTable->getArray()); + $dataTables = $this->dataTable->getArray(); + $firstDatatable = reset($dataTables); $period = $firstDatatable->getMetadata('period'); $stepSize = $this->getXAxisStepSize($period->getLabel(), $countGraphElements); -- GitLab