Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Better fix for nullpointer.
James Cole334a521ca123
diff --git a/app/Support/JsonApi/Enrichments/AccountEnrichment.php b/app/Support/JsonApi/Enrichments/AccountEnrichment.phpindex 4e62c1c0cd..c11fd4562e 100644--- a/app/Support/JsonApi/Enrichments/AccountEnrichment.php+++ b/app/Support/JsonApi/Enrichments/AccountEnrichment.php@@ -250,8 +250,9 @@ class AccountEnrichment implements EnrichmentInterfaceforeach ($currencies as $currency) {$this->currencies[(int) $currency->id] = $currency;}+ $this->currencies[0] = $this->native;foreach ($this->currencies as $id => $currency) {- if (true === $currency && 0 !== (int) $id) {+ if (true === $currency) {throw new FireflyException(sprintf('Currency #%d not found.', $id));}}