Skip to content
Snippets Groups Projects
Commit 2c1477ec authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Revert "FIX Accept spaces around the | criteria"

This reverts commit 37d158f1.
parent 37d158f1
Branches
Tags
No related merge requests found
...@@ -5737,9 +5737,7 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0) ...@@ -5737,9 +5737,7 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
else // $mode=0 else // $mode=0
{ {
$textcrit = ''; $textcrit = '';
$tmpcrit = preg_replace('/\s+|/','|',$tmpcrit); $tmpcrits = explode('|',$crit);
$tmpcrit = preg_replace('/|\s+/','|',$tmpcrit);
$tmpcrits = explode('|',$tmpcrit);
$i3 = 0; $i3 = 0;
foreach($tmpcrits as $tmpcrit) foreach($tmpcrits as $tmpcrit)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment