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
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 2 additions and 2 deletions

View File

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

View File

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