From 651029e28449874e20391b47e9fa8f9b68f62a82 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 20 Sep 2020 16:18:48 +0200 Subject: [PATCH] Don't use isset. --- app/Helpers/Report/NetWorth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);