Skip to content

Commit

Permalink
Update Query.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Feb 3, 2022
1 parent 03e46d6 commit 7e166c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_finder/src/Indexer/Query.php
Expand Up @@ -1358,12 +1358,12 @@ protected function getTokenData($token)
$searchTerm = $token->term;
$searchStem = $token->stem;

if ($this->wordmode == 'begin')
if ($this->wordmode === 'begin')
{
$searchTerm .= '%';
$searchStem .= '%';
}
elseif ($this->wordmode == 'fuzzy')
elseif ($this->wordmode === 'fuzzy')
{
$searchTerm = '%' . $searchTerm . '%';
$searchStem = '%' . $searchStem . '%';
Expand Down

0 comments on commit 7e166c7

Please sign in to comment.