mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Catch missing key.
This commit is contained in:
@@ -105,10 +105,6 @@ class BasicController extends Controller
|
|||||||
$end = $this->parameters->get('end');
|
$end = $this->parameters->get('end');
|
||||||
|
|
||||||
// balance information:
|
// balance information:
|
||||||
$balanceData = [];
|
|
||||||
$billData = [];
|
|
||||||
$spentData = [];
|
|
||||||
$netWorthData = [];
|
|
||||||
$balanceData = $this->getBalanceInformation($start, $end);
|
$balanceData = $this->getBalanceInformation($start, $end);
|
||||||
$billData = $this->getBillInformation($start, $end);
|
$billData = $this->getBillInformation($start, $end);
|
||||||
$spentData = $this->getLeftToSpendInfo($start, $end);
|
$spentData = $this->getLeftToSpendInfo($start, $end);
|
||||||
@@ -127,9 +123,15 @@ class BasicController extends Controller
|
|||||||
private function getBalanceInformation(Carbon $start, Carbon $end): array
|
private function getBalanceInformation(Carbon $start, Carbon $end): array
|
||||||
{
|
{
|
||||||
// prep some arrays:
|
// prep some arrays:
|
||||||
$incomes = [];
|
$incomes = [
|
||||||
$expenses = [];
|
'native' => '0',
|
||||||
$sums = [];
|
];
|
||||||
|
$expenses = [
|
||||||
|
'native' => '0',
|
||||||
|
];
|
||||||
|
$sums = [
|
||||||
|
'native' => '0',
|
||||||
|
];
|
||||||
$return = [];
|
$return = [];
|
||||||
$currencies = [];
|
$currencies = [];
|
||||||
$converter = new ExchangeRateConverter();
|
$converter = new ExchangeRateConverter();
|
||||||
|
Reference in New Issue
Block a user