diff options
Diffstat (limited to 'plugins/Events')
-rw-r--r-- | plugins/Events/Archiver.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Events/Archiver.php b/plugins/Events/Archiver.php index 69531a5c81..0146fa738f 100644 --- a/plugins/Events/Archiver.php +++ b/plugins/Events/Archiver.php @@ -167,10 +167,8 @@ class Archiver extends \Piwik\Plugin\Archiver ) ); - $where = "log_link_visit_action.server_time >= ? - AND log_link_visit_action.server_time <= ? - AND log_link_visit_action.idsite = ? - AND log_link_visit_action.idaction_event_category IS NOT NULL"; + $where = $this->getLogAggregator()->getWhereStatement('log_link_visit_action', 'server_time'); + $where .= " AND log_link_visit_action.idaction_event_category IS NOT NULL"; $groupBy = "log_link_visit_action.idaction_event_category, log_link_visit_action.idaction_event_action, |