Commit 34c898da authored by zYne's avatar zYne

--no commit message

--no commit message
parent a12e74d8
...@@ -292,22 +292,10 @@ class Doctrine_Tokenizer ...@@ -292,22 +292,10 @@ class Doctrine_Tokenizer
} }
if (empty($term[$i])) { if (empty($term[$i])) {
$term[$i] = trim($val); $term[$i] = trim($val);
$s1 = substr_count($term[$i], $e1);
$s2 = substr_count($term[$i], $e2);
if (strpos($term[$i], '(') !== false) {
if($s1 == $s2) {
$i++;
}
} else {
if ( ! (substr_count($term[$i], "'") & 1) &&
! (substr_count($term[$i], "\"") & 1)) {
$i++;
}
}
} else { } else {
$term[$i] .= $str[($key + 1)] . trim($val); $term[$i] .= $str[($key + 1)] . trim($val);
}
$c1 = substr_count($term[$i], $e1); $c1 = substr_count($term[$i], $e1);
$c2 = substr_count($term[$i], $e2); $c2 = substr_count($term[$i], $e2);
...@@ -322,7 +310,6 @@ class Doctrine_Tokenizer ...@@ -322,7 +310,6 @@ class Doctrine_Tokenizer
} }
} }
} }
}
$term[$i - 1] = array($term[$i - 1], ''); $term[$i - 1] = array($term[$i - 1], '');
return $term; return $term;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment