webber12 / evoSearch

Поиск с использованием словарей phpMorphy для MODxEVO
16 stars 12 forks source link

Evo Parse Error 'action' of non-object #35

Open risingisland opened 1 year ago

risingisland commented 1 year ago

When searching for a word that does not have a result I end up with a Evo Parse Error:

Trying to get property 'action' of non-object Error : mysqli::query(): (HY000/3685): Illegal argument to a regular expression.

I dont know if this line should be changed to below? https://github.com/webber12/evoSearch/blob/a121043a25d46c0c64eccddfcc792ffe2a9bfd1b/assets/snippets/evoSearch/snippet.class.php#L395

$tmp[] = " LOWER(" . $search_field . ") REGEXP '\\\\b" . $word . "\\\\b'";