From f14a2b13f37d4350153c7f4db37b925b723cfd34 Mon Sep 17 00:00:00 2001 From: Christian Gripp Date: Sat, 20 Jan 2024 21:11:33 +0100 Subject: [PATCH] Fix possible null error in search (#8149) --- src/Action/SearchAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Action/SearchAction.php b/src/Action/SearchAction.php index 1963b50d63..a144e28d18 100644 --- a/src/Action/SearchAction.php +++ b/src/Action/SearchAction.php @@ -34,7 +34,7 @@ public function __invoke(Request $request): Response 'base_template' => $request->isXmlHttpRequest() ? $this->templateRegistry->getTemplate('ajax') : $this->templateRegistry->getTemplate('layout'), - 'query' => $request->get('q'), + 'query' => $request->get('q', ''), 'groups' => $this->pool->getDashboardGroups(), ])); }