Default value for when session is empty.

This commit is contained in:
James Cole
2014-12-13 13:07:32 +01:00
parent d3cda8811d
commit 9ab0a83f7c
8 changed files with 28 additions and 26 deletions

View File

@@ -1,4 +1,5 @@
<?php
use Carbon\Carbon;
/**
* Class HomeController
@@ -33,8 +34,8 @@ class HomeController extends BaseController
$count = $acct->countAssetAccounts();
$start = Session::get('start');
$end = Session::get('end');
$start = Session::get('start', Carbon::now()->startOfMonth());
$end = Session::get('end', Carbon::now()->endOfMonth());
// get the preference for the home accounts to show: