diff --git a/src/Controller/SearchController.php b/src/Controller/SearchController.php index 0bc57fb..e515162 100644 --- a/src/Controller/SearchController.php +++ b/src/Controller/SearchController.php @@ -21,7 +21,7 @@ class SearchController extends AbstractController return $this->render( 'default/search/module.html.twig', [ - 'query' => urldecode($query), + 'query' => $query ? urldecode($query) : '', ] ); }