Skip to content

Commit

Permalink
Fixing build.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Mar 26, 2014
1 parent 7f0a0df commit 41f1f1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/VisitFrequency/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
Expand Down

0 comments on commit 41f1f1c

Please sign in to comment.