diff --git a/search.php b/search.php index c76b699c2..9b2525f5a 100644 --- a/search.php +++ b/search.php @@ -694,7 +694,7 @@ class search extends e_shortcode $ns = e107::getRender(); $sch = new e_search; $tp = e107::getParser(); - + $query = $this->query; @@ -731,11 +731,12 @@ class search extends e_shortcode { continue; } + $obj = new $className; - + $where = (method_exists($obj,'where')) ? $obj->where($_GET) : ""; - $ps = $obj->parsesearch($this->search_info[$key]['table'], $this->search_info[$key]['return_fields'], $this->search_info[$key]['search_fields'], $this->search_info[$key]['weights'], 'self', varset($this->search_info[$key]['no_results'],LAN_198), $where , $this->search_info[$key]['order']); + $ps = $obj->parsesearch($this->search_info[$key]['table'], $this->search_info[$key]['return_fields'], $this->search_info[$key]['search_fields'], $this->search_info[$key]['weights'], 'self', varset($this->search_info[$key]['no_results'],"