mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Filter streak correctly
This commit is contained in:
@@ -137,7 +137,7 @@ class Dayswithqso_model extends CI_Model
|
||||
}
|
||||
}
|
||||
|
||||
if ($dateprev == $datecurr) {
|
||||
if ($dateprev == $datecurr && $streak > 1) {
|
||||
$streaks[$i]['highstreak'] = $streak;
|
||||
$streaks[$i]['endstreak'] = $endstreak->format('Y-m-d');
|
||||
$streaks[$i]['beginstreak'] = $endstreak->sub(new DateInterval('P'.($streak-1).'D'))->format('Y-m-d');
|
||||
|
||||
Reference in New Issue
Block a user