From 20e51d79b62895f9992c38ae165718d41f514f82 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 6 Jun 2021 17:47:44 +0200 Subject: [PATCH] Fix array thing. Pretty basic. --- app/Http/Controllers/SearchController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 8cc438eaff..a3a5fe6e00 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -64,7 +64,10 @@ class SearchController extends Controller public function index(Request $request, SearchInterface $searcher) { // search params: - $fullQuery = (string) $request->get('search'); + if(is_array($request->get('search'))) { + $fullQuery = ''; + } + $fullQuery = (string) $fullQuery; $page = 0 === (int) $request->get('page') ? 1 : (int) $request->get('page'); $ruleId = (int) $request->get('rule'); $rule = null;