Skip to content

Commit

Permalink
fix: remove iset in foreach for feature query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Apr 30, 2024
1 parent e7967b1 commit cf9b362
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ public function addWhereFromFilter(DbQuery $query, $filter): DbQuery
$uniqueFeature = [];

foreach ($filter['values'] as $value) {
if (!isset($uniqueFeature[$value['id']])) {
$uniqueFeature[$value['id']] = $value;
}
$uniqueFeature[$value['id']] = $value;
}

$uniqueFeature = array_values($uniqueFeature);
Expand Down

0 comments on commit cf9b362

Please sign in to comment.