Skip to content

Firefly III: a personal finances manager

Skip irrelevant tags.

James Colec269be7f0704
diff --git a/app/Http/Controllers/Report/TagController.php b/app/Http/Controllers/Report/TagController.php
index e352ac3aaf..3b8fb687bb 100644
--- a/app/Http/Controllers/Report/TagController.php
+++ b/app/Http/Controllers/Report/TagController.php
@@ -386,7 +386,9 @@ class TagController extends Controller
/** @var array $tag */
foreach ($currency['tags'] as $tag) {
$tagId = $tag['id'];
-
+ if(!array_key_exists($tagId, $report)) {
+ continue;
+ }
foreach ($tag['transaction_journals'] as $journal) {
// add currency info to report array:
$report[$tagId]['currencies'][$currencyId] ??= [
@@ -422,7 +424,9 @@ class TagController extends Controller
/** @var array $tag */
foreach ($currency['tags'] as $tag) {
$tagId = $tag['id'];
-
+ if(!array_key_exists($tagId, $report)) {
+ continue;
+ }
foreach ($tag['transaction_journals'] as $journal) {
// add currency info to report array:
$report[$tagId]['currencies'][$currencyId] ??= [