Fix in year list.

This commit is contained in:
James Cole 2015-03-31 20:49:02 +02:00
parent 638f38d823
commit 216a223617

View File

@ -119,6 +119,9 @@ class ReportHelper implements ReportHelperInterface
$years[] = $start->format('Y');
$start->addYear();
}
$years[] = Carbon::now()->format('Y');
// force the current year.
$years = array_unique($years);
return $years;
}