Changeset 28165


Ignore:
Timestamp:
04/13/14 06:44:14 (5 years ago)
Author:
rvelices
Message:

bug 3056: quick search - fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r28152 r28165  
    832832    if ($token->modifier & QST_WILDCARD_BEGIN) 
    833833      $use_ft = false; 
    834     if (($token->modifier & QST_QUOTED|QST_WILDCARD_END) == QST_QUOTED|QST_WILDCARD_END) 
     834    if ($token->modifier & (QST_QUOTED|QST_WILDCARD_END) == (QST_QUOTED|QST_WILDCARD_END)) 
    835835      $use_ft = false; 
     836 
    836837    if ($use_ft) 
    837838    { 
    838839      $max = max( array_map( 'mb_strlen',  
    839         preg_split('/['.preg_quote('!"#$%&()*+,./:;<=>?@[\]^`{|}~','/').']+/', $variant0, PREG_SPLIT_NO_EMPTY) 
     840        preg_split('/['.preg_quote('!"#$%&()*+,./:;<=>?@[\]^`{|}~','/').']+/', $variant, PREG_SPLIT_NO_EMPTY) 
    840841        ) ); 
    841842      if ($max<4) 
Note: See TracChangeset for help on using the changeset viewer.