mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix for #835
This commit is contained in:
		| @@ -420,7 +420,7 @@ class CategoryController extends Controller | ||||
|         $accountRepository = app(AccountRepositoryInterface::class); | ||||
|         $accounts          = $accountRepository->getAccountsByType([AccountType::DEFAULT, AccountType::ASSET]); | ||||
|         $first             = $repository->firstUseDate($category); | ||||
|         if ($first->year === 1900) { | ||||
|         if (is_null($first)) { | ||||
|             $first = new Carbon; | ||||
|         } | ||||
|         $range   = Preferences::get('viewRange', '1M')->data; | ||||
|   | ||||
| @@ -67,7 +67,7 @@ class CategoryController extends Controller | ||||
|  | ||||
|         $start = $repository->firstUseDate($category); | ||||
|  | ||||
|         if ($start->year === 1900) { | ||||
|         if (is_null($first)) { | ||||
|             $start = new Carbon; | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user