Skip to content

Firefly III: a personal finances manager

Don't use isset.

James Cole651029e28449
diff --git a/app/Helpers/Report/NetWorth.php b/app/Helpers/Report/NetWorth.php
index fc6189ecac..d8fbf511bd 100644
--- a/app/Helpers/Report/NetWorth.php
+++ b/app/Helpers/Report/NetWorth.php
@@ -117,7 +117,7 @@ class NetWorth implements NetWorthInterface
Log::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]);