webui fixes

This commit is contained in:
SJ
2012-02-15 11:03:27 +01:00
parent 1e7039c433
commit e51af89e5d
6 changed files with 13 additions and 3 deletions

View File

@ -103,7 +103,8 @@ class ControllerSearchHelper extends Controller {
$this->a['from_domain'] = substr($this->a['from_domain'], 1, strlen($this->a['from_domain']));
$this->a['to_domain'] = substr($this->a['to_domain'], 1, strlen($this->a['to_domain']));
$this->a['ref'] = $this->request->post['ref'];
if(isset($this->request->post['ref'])) { $this->a['ref'] = $this->request->post['ref']; }
$this->a['sort'] = $this->request->post['sort'];
$this->a['order'] = $this->request->post['order'];
}
@ -112,6 +113,8 @@ class ControllerSearchHelper extends Controller {
private function preprocess_post_expert_request($data = array()) {
$token = '';
if(!isset($data['search'])) { return; }
$s = preg_replace("/:/", ": ", $data['search']);
$s = preg_replace("/,/", " ", $s);
$s = preg_replace("/\s{1,}/", " ", $s);