fix sticler
This commit is contained in:
parent
e17d3b029e
commit
f36a513a10
@ -9151,12 +9151,11 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0)
|
|||||||
$tmpcrit = trim($tmpcrit);
|
$tmpcrit = trim($tmpcrit);
|
||||||
$tmpcrit2 = $tmpcrit;
|
$tmpcrit2 = $tmpcrit;
|
||||||
$tmpbefore = '%';
|
$tmpbefore = '%';
|
||||||
$tmpafter = '%';
|
$tmpafter = '%';
|
||||||
if(preg_match('/^!/', $tmpcrit)) {
|
if (preg_match('/^!/', $tmpcrit)) {
|
||||||
$newres .= $field." NOT LIKE '"; // ! as exclude character
|
$newres .= $field." NOT LIKE '"; // ! as exclude character
|
||||||
$tmpcrit2 = preg_replace('/^!/', '', $tmpcrit2);
|
$tmpcrit2 = preg_replace('/^!/', '', $tmpcrit2);
|
||||||
}
|
} else $newres .= $field." LIKE '";
|
||||||
else $newres .= $field." LIKE '";
|
|
||||||
|
|
||||||
if (preg_match('/^[\^\$]/', $tmpcrit)) {
|
if (preg_match('/^[\^\$]/', $tmpcrit)) {
|
||||||
$tmpbefore = '';
|
$tmpbefore = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user