Skip to content

Commit

Permalink
Use array_values before array merge (#32371)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 authored Feb 11, 2021
1 parent 9a57d95 commit c67e920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_finder/src/Model/SearchModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ protected function getListQuery()
return $query;
}

$included = call_user_func_array('array_merge', $this->includedTerms);
$included = call_user_func_array('array_merge', array_values($this->includedTerms));
$query->join('INNER', $this->_db->quoteName('#__finder_links_terms') . ' AS m ON m.link_id = l.link_id')
->where('m.term_id IN (' . implode(',', $included) . ')');

Expand Down

0 comments on commit c67e920

Please sign in to comment.