Skip to content

Firefly III: a personal finances manager

Fix #10493

James Coleae126e83223c
diff --git a/app/Support/Navigation.php b/app/Support/Navigation.php
index 0b336ed8bc..2549fbba95 100644
--- a/app/Support/Navigation.php
+++ b/app/Support/Navigation.php
@@ -582,7 +582,7 @@ class Navigation
*/
public function preferredEndOfPeriod(Carbon $start, Carbon $end): string
{
- if ((int) $start->diffInMonths($end, true) > 1) {
+ if ((int) $start->diffInMonths($end, true) > 1 && (int) $start->diffInMonths($end, true) <= 12) {
return 'endOfMonth';
}