Don't use isset.

This commit is contained in:
James Cole 2020-09-20 16:18:48 +02:00
parent cbeb2675fd
commit 651029e284
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -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]);