Changeset 754


Ignore:
Timestamp:
Jan 13, 2014, 11:52:14 AM (11 years ago)
Author:
maron
Message:
  • Fixed: error names in zero length
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Version.php

    r753 r754  
    66// and system will need database update.
    77
    8 $Revision = 752; // Subversion revision
     8$Revision = 753; // Subversion revision
    99$DatabaseRevision = 748; // Database structure revision
    1010$ReleaseTime = '2014-01-12';
  • trunk/includes/global.php

    r753 r754  
    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 (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)) {
    629           $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR ';
    630           $SqlOK = true;
    631         }
     628        if ((strlen($ArrStr[$i]) > 3) or ( ((count($ArrStr) < 6) or ($i == 0)) and (strlen($ArrStr[$i]) > 0) ) )  //length
     629          if ((!$FirstBig) or (ctype_upper(substr($ArrStr[$i],0,1))) or (count($ArrStr) < 6) )  //first big
     630            if (array_search($ArrStr[$i], $ArrStr) == $i) {  //first in array
     631              $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR ';
     632              $SqlOK = true;
     633            }
    632634      }
    633635      $where = substr($where, 0, strlen($where) - 4);
Note: See TracChangeset for help on using the changeset viewer.