mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Fix for issue #1167
This commit is contained in:
@@ -90,8 +90,13 @@ class Navigation
|
||||
*/
|
||||
public function blockPeriods(\Carbon\Carbon $start, \Carbon\Carbon $end, string $range): array
|
||||
{
|
||||
if ($end < $start) {
|
||||
list($start, $end) = [$end, $start];
|
||||
}
|
||||
$periods = [];
|
||||
// Start by looping per period:
|
||||
/*
|
||||
* Start looping per months for 1 year + the rest of the year:
|
||||
*/
|
||||
$perMonthEnd = clone $end;
|
||||
$perMonthStart = clone $end;
|
||||
$perMonthStart->startOfyear()->subYear();
|
||||
@@ -285,7 +290,7 @@ class Navigation
|
||||
|
||||
/**
|
||||
* @param \Carbon\Carbon $theDate
|
||||
* @param string $repeatFrequency
|
||||
* @param string $repeatFrequency
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user