diff --git a/app/main/controller/api/statistic.php b/app/main/controller/api/statistic.php index b2067732..ab89776e 100644 --- a/app/main/controller/api/statistic.php +++ b/app/main/controller/api/statistic.php @@ -169,7 +169,7 @@ class Statistic extends Controller\AccessController { ]; // date offset condition ---------------------------------------------------------------------------------- - $sqlDateOffset = " AND CONCAT(`log`.`year`, `log`.`week`) BETWEEN :yearWeekStart AND :yearWeekEnd "; + $sqlDateOffset = " AND CONCAT(`log`.`year`, LPAD(`log`.`week`, 2, 0) ) BETWEEN :yearWeekStart AND :yearWeekEnd "; $queryData[':yearWeekStart'] = $this->concatYearWeek($yearStart, $weekStart); $queryData[':yearWeekEnd'] = $this->concatYearWeek($yearEnd, $weekEnd);