diff --git a/src/Aviat/AnimeClient/Controller/Anime.php b/src/Aviat/AnimeClient/Controller/Anime.php index 53e75261..99372c0a 100644 --- a/src/Aviat/AnimeClient/Controller/Anime.php +++ b/src/Aviat/AnimeClient/Controller/Anime.php @@ -205,7 +205,8 @@ class Anime extends BaseController { */ public function search() { - $query = $this->request->query->get('query'); + $queryParams = $this->request->getQueryParams(); + $query = $queryParams['query']; $this->outputJSON($this->model->search($query)); } diff --git a/src/Aviat/AnimeClient/Controller/Collection.php b/src/Aviat/AnimeClient/Controller/Collection.php index a3b6ed3e..70a27cd0 100644 --- a/src/Aviat/AnimeClient/Controller/Collection.php +++ b/src/Aviat/AnimeClient/Controller/Collection.php @@ -76,7 +76,8 @@ class Collection extends BaseController { */ public function search() { - $query = $this->request->query->get('query'); + $queryParams = $this->request->getQueryParams(); + $query = $queryParams['query']; $this->outputJSON($this->anime_model->search($query)); }