Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Extra if
James Colea94b2e880688
diff --git a/app/Http/Controllers/Budget/IndexController.php b/app/Http/Controllers/Budget/IndexController.phpindex 10387daf30..1c91ed2b44 100644--- a/app/Http/Controllers/Budget/IndexController.php+++ b/app/Http/Controllers/Budget/IndexController.php@@ -219,7 +219,7 @@ class IndexController extends Controller/** @var TransactionCurrency $currency */foreach ($currencies as $currency) {$spentArr = $this->opsRepository->sumExpenses($start, $end, null, new Collection([$current]), $currency);- if (array_key_exists('sum', $spentArr[$currency->id])) {+ if (array_key_exists($currency->id, $spentArr) && array_key_exists('sum', $spentArr[$currency->id])) {$array['spent'][$currency->id]['spent'] = $spentArr[$currency->id]['sum'];$array['spent'][$currency->id]['currency_id'] = $currency->id;$array['spent'][$currency->id]['currency_symbol'] = $currency->symbol;