Each word in your search query must be at least two characters long (SMF 2 search error)

spiros · 1 · 1322

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 856486
    • Gender:Male
  • point d’amour
Each word in your search query must be at least two characters long (SMF 2 search error)

In Sources/Search.php

Find

Code: [Select]
        // Don't allow very, very short words.
        elseif ($smcFunc['strlen']($value) < 2)
        {
            $context['search_errors']['search_string_small_words'] = true;
            unset($searchArray[$index]);
        }

Replace

Code: [Select]
        // Don't allow very, very short words.
        elseif ($smcFunc['strlen']($value) < 2)
        {
            unset($searchArray[$index]);
        }
« Last Edit: 23 Feb, 2022, 19:14:46 by spiros »


 

Search Tools