Skip to content

Commit

Permalink
Revert "FIX Accept spaces around the | criteria"
Browse files Browse the repository at this point in the history
This reverts commit 37d158f.
  • Loading branch information
eldy committed Jan 7, 2017
1 parent 37d158f commit 2c1477e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions htdocs/core/lib/functions.lib.php
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2c1477e

Please sign in to comment.