diff --git a/lib/doofinder_api.php b/lib/doofinder_api.php index 345ed8f..fc1df3d 100644 --- a/lib/doofinder_api.php +++ b/lib/doofinder_api.php @@ -227,7 +227,7 @@ public function query($query=null, $page=null, $options = array()){ { $filter = $params['filter']; unset($params['filter']); - $dfResults = $this->apiCall('search', $params); + $dfResults = new DoofinderResults($this->apiCall('search', $params)); $params['query_name'] = $dfResults->getProperty('query_name'); $params['filter'] = $filter; }