From 41f1f1c5705452efca1ba70135020799541f80d7 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Wed, 26 Mar 2014 17:46:49 +0000 Subject: [PATCH] Fixing build. --- plugins/VisitFrequency/API.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/VisitFrequency/API.php b/plugins/VisitFrequency/API.php index 1e0935d14fe..af6607425f7 100644 --- a/plugins/VisitFrequency/API.php +++ b/plugins/VisitFrequency/API.php @@ -35,6 +35,7 @@ class API extends \Piwik\Plugin\API */ public function get($idSite, $period, $date, $segment = false, $columns = false) { + $originalColumns = $columns; $newSegment = $this->appendReturningVisitorSegment($segment); $this->unsuffixColumns($columns); @@ -50,7 +51,7 @@ public function get($idSite, $period, $date, $segment = false, $columns = false) $table = Request::processRequest('VisitsSummary.get', $params); $this->suffixColumns($table, $period); - $oldData = $this->getPrePiwik2Data($idSite, $period, $date, $segment, $columns); + $oldData = $this->getPrePiwik2Data($idSite, $period, $date, $segment, $originalColumns); if ($oldData->getRowsCount() > 0) { $this->addPrePiwik2DataIfNewDataAbsent($oldData, $table); }