Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/DataAccess/ArchiveSelector.php')
-rw-r--r--core/DataAccess/ArchiveSelector.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/DataAccess/ArchiveSelector.php b/core/DataAccess/ArchiveSelector.php
index 7be972bdb8..123b6c51ee 100644
--- a/core/DataAccess/ArchiveSelector.php
+++ b/core/DataAccess/ArchiveSelector.php
@@ -178,8 +178,7 @@ class ArchiveSelector
$bind = array();
if ($firstPeriod instanceof Range) {
- $dateCondition = "period = ? AND date1 = ? AND date2 = ?";
- $bind[] = $firstPeriod->getId();
+ $dateCondition = "date1 = ? AND date2 = ?";
$bind[] = $firstPeriod->getDateStart()->toString('Y-m-d');
$bind[] = $firstPeriod->getDateEnd()->toString('Y-m-d');
} else {