mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[QSO Streak] Fix when the streak is ended and now QSO is logged after that
This commit is contained in:
@@ -137,7 +137,11 @@ class Dayswithqso_model extends CI_Model
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($dateprev == $datecurr) {
|
||||
$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');
|
||||
}
|
||||
|
||||
if (isset($streaks) && is_array($streaks)) {
|
||||
usort($streaks, array($this,'compareStreak')); // Sort array, highest streak first
|
||||
|
||||
Reference in New Issue
Block a user