Skip to content

Commit

Permalink
Flatten arrays when stringing pruned results together.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 9, 2025
1 parent 623e8c3 commit dc1dd61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Search/Comb/Comb.php
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,11 @@ private function removeDisallowedMatches($params)

// string pruned results together
foreach ($item['pruned'] as $pruned) {
$record .= ' '.$pruned;
if (is_array($pruned)) {
$record .= ' '.$this->flattenArray($pruned);
} else {
$record .= ' '.$pruned;
}
}

// check for disallowed
Expand Down

0 comments on commit dc1dd61

Please sign in to comment.