Skip to content

Commit

Permalink
Refs #3833 - Piwik_Period's toString method does not return the type …
Browse files Browse the repository at this point in the history
…of the Period and a "Array to String conversion" notice is triggered. So we use the getLabel accessor.
  • Loading branch information
peterbo committed Mar 18, 2013
1 parent 20410b7 commit 5700b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ArchiveProcessing.php
Expand Up @@ -994,7 +994,7 @@ public function isArchivingDisabled()

public static function isArchivingDisabledFor($segment, $period)
{
if($period == 'range') {
if($period->getLabel() == 'range') {
return false;
}
$processOneReportOnly = !self::shouldProcessReportsAllPluginsFor($segment, $period);
Expand Down

0 comments on commit 5700b37

Please sign in to comment.