close#702 Fixed:Unopened report pages in Php version 5.6

This commit is contained in:
Batuhan Baş
2018-12-27 11:34:21 +03:00
parent ee54db8246
commit 63118af448
5 changed files with 15 additions and 12 deletions

View File

@ -28,7 +28,7 @@ class ExpenseSummary extends Controller
$year = request('year', Date::now()->year);
// check and assign year start
if (($financial_start = Date::parse(setting('general.financial_start')))->month != 1) {
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) {
// check if a specific year is requested
if (!is_null(request('year'))) {
$financial_start->year = $year;