Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Don't use isset.
James Cole651029e28449
diff --git a/app/Helpers/Report/NetWorth.php b/app/Helpers/Report/NetWorth.phpindex fc6189ecac..d8fbf511bd 100644--- a/app/Helpers/Report/NetWorth.php+++ b/app/Helpers/Report/NetWorth.php@@ -117,7 +117,7 @@ class NetWorth implements NetWorthInterfaceLog::debug(sprintf('Balance corrected to %s because of virtual balance (%s)', $balance, $virtualBalance));- if (!isset($netWorth[$currencyId])) {+ if (!array_key_exists($currencyId, $netWorth)) {$netWorth[$currencyId] = '0';}$netWorth[$currencyId] = bcadd($balance, $netWorth[$currencyId]);