improved the search feature

Change-Id: Ia714ffade38edc9dd19b70ba37f996e6705ce057
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ
2017-05-06 20:09:39 +02:00
parent 12ea64c90b
commit 961ae7afee
5 changed files with 11 additions and 18 deletions

View File

@ -148,20 +148,10 @@ class ControllerSearchHelper extends Controller {
$from .= " $v";
}
else {
if($prev_token_is_email == 1) {
$prev_token_is_email = 0;
$from .= " $v";
}
else {
$match .= ' ' . $v;
}
$match .= ' ' . $v;
}
}
if($match && $match != ' ' . $this->data['text_enter_search_terms']) {
$match = "@(subject,body) $match";
}
if($from) { $match = $from . ' ' . $match; }