From 28d12e9a520c6e531606920fe0cbe8aa2894632b Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 5 Jan 2013 20:58:49 +0100 Subject: [PATCH] fixed a sphinx query --- webui/model/search/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 54c06c37..1596bdf8 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -186,7 +186,6 @@ class ModelSearchSearch extends Model { if(RESTRICTED_AUDITOR == 1) { - /* !!!FIXME!!! test this evaluation */ $domain_restrictions = ' (@todomain ' . $sd . ' | @fromdomain ' . $sd . ')'; } @@ -269,7 +268,8 @@ class ModelSearchSearch extends Model { $data['any'] = $this->fixup_meta_characters($data['any']); $data['any'] = $this->fixup_sphinx_operators($data['any']); $data['any'] = $this->fix_email_address_for_sphinx($data['any']); - if($match) { $match = "($match) & "; } $match .= "(" . $data['any'] . ") "; + $fields = ''; + if($match) { $match = "($match) & "; $fields = '@subject,@body '; } $match .= "($fields " . $data['any'] . ") "; }