Skip to content

Commit

Permalink
Update IndirectWithDirectFilterer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Dec 22, 2022
1 parent 3ce546e commit 1fef3e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ListFilterer/IndirectWithDirectFilterer.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public function filter(array $list) : array
}
foreach ($list_of_lists as $list_list) {
foreach ($list_list as $item) {
if (!empty($already_added_register[$item->name])) {
continue;
}
$already_added_register[$item->name] = true;
$return[] = $item;
if (!empty($already_added_register[$item->name])) {
continue;
}
$already_added_register[$item->name] = true;
$return[] = $item;
}
}
return $return;
Expand Down

0 comments on commit 1fef3e5

Please sign in to comment.