Revert "FIX Accept spaces around the | criteria"

This reverts commit 37d158f159.
This commit is contained in:
Laurent Destailleur
2017-01-07 21:50:14 +01:00
parent 37d158f159
commit 2c1477ecea

View File

@@ -5737,9 +5737,7 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
else // $mode=0
{
$textcrit = '';
$tmpcrit = preg_replace('/\s+|/','|',$tmpcrit);
$tmpcrit = preg_replace('/|\s+/','|',$tmpcrit);
$tmpcrits = explode('|',$tmpcrit);
$tmpcrits = explode('|',$crit);
$i3 = 0;
foreach($tmpcrits as $tmpcrit)
{