mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Remove stats from empty objects.
This commit is contained in:
@@ -325,7 +325,7 @@ trait PeriodOverview
|
||||
private function filterStatistics(Carbon $start, Carbon $end, string $type): Collection
|
||||
{
|
||||
if (0 === $this->statistics->count()) {
|
||||
Log::warning('Have no statistic to filter!');
|
||||
Log::debug('Have no statistic to filter!');
|
||||
|
||||
return new Collection();
|
||||
}
|
||||
@@ -338,7 +338,7 @@ trait PeriodOverview
|
||||
private function filterPrefixedStatistics(Carbon $start, Carbon $end, string $prefix): Collection
|
||||
{
|
||||
if (0 === $this->statistics->count()) {
|
||||
Log::warning('Have no statistic to filter!');
|
||||
Log::debug('Have no statistic to filter!');
|
||||
|
||||
return new Collection();
|
||||
}
|
||||
|
Reference in New Issue
Block a user