Skip to content

Commit

Permalink
BUGFIX: Parameter $period not works in method Piwik::custom.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leechael committed Apr 22, 2014
1 parent 3de6593 commit 74ee8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RobBrazier/Piwik/Piwik.php
Expand Up @@ -712,12 +712,12 @@ public function custom($method, $arguments = array(), $id = false, $period = fal
if($id){
$url .= '&idSite='.$this->get_site_id($id);
}
if($period = true){
if($period === true){
$url .= $this->date();
}
$url .= '&format='.$this->check_format($format).'&token_auth='.$this->get_apikey();
return $this->get_decoded($url, $format);
}
}

}
}

0 comments on commit 74ee8ab

Please sign in to comment.