Ignore:
Timestamp:
Jan 13, 2014, 11:42:03 AM (11 years ago)
Author:
maron
Message:
  • Added: Search all words in names, if is sentence short
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r748 r753  
    626626
    627627        //find word only if is 3 characters and more, and if starts by upper char, and search only once
    628         if (((strlen($ArrStr[$i]) > 3) or (strlen($Text) < 10))  and ((!$FirstBig) or (ctype_upper(substr($ArrStr[$i],0,1)))) and (array_search($ArrStr[$i], $ArrStr) == $i)) {
     628        if (((strlen($ArrStr[$i]) > 3) or (count($ArrStr) < 6) or ($i == 0))  and ((!$FirstBig) or (ctype_upper(substr($ArrStr[$i],0,1))) or (count($ArrStr) < 6) ) and (array_search($ArrStr[$i], $ArrStr) == $i)) {
    629629          $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR ';
    630630          $SqlOK = true;
Note: See TracChangeset for help on using the changeset viewer.