Don't use isset.

This commit is contained in:
James Cole
2020-09-20 16:18:48 +02:00
parent cbeb2675fd
commit 651029e284

View File

@@ -117,7 +117,7 @@ class NetWorth implements NetWorthInterface
Log::debug(sprintf('Balance corrected to %s because of virtual balance (%s)', $balance, $virtualBalance)); 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] = '0';
} }
$netWorth[$currencyId] = bcadd($balance, $netWorth[$currencyId]); $netWorth[$currencyId] = bcadd($balance, $netWorth[$currencyId]);