Fix in date range [skip ci]

This commit is contained in:
James Cole
2017-03-10 19:36:22 +01:00
parent ecbd7ca95b
commit 9dd2f447cc
2 changed files with 2 additions and 2 deletions

View File

@@ -260,7 +260,7 @@ class BudgetController extends Controller
} }
// fix title: // fix title:
if ((strlen($moment) > 0 && $moment !== 'all') || strlen($moment) === 0) { if (((strlen($moment) > 0 && $moment !== 'all') || strlen($moment) === 0) && $count > 0) {
$subTitle = trans( $subTitle = trans(
'firefly.without_budget_between', 'firefly.without_budget_between',
['start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat)] ['start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat)]

View File

@@ -220,7 +220,7 @@ class CategoryController extends Controller
} }
// fix title: // fix title:
if ((strlen($moment) > 0 && $moment !== 'all') || strlen($moment) === 0) { if (((strlen($moment) > 0 && $moment !== 'all') || strlen($moment) === 0) && $count > 0) {
$subTitle = trans( $subTitle = trans(
'firefly.without_category_between', 'firefly.without_category_between',
['start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat)] ['start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat)]