From 907969fa3eaaf73abc94077c8ef2d7f265455de0 Mon Sep 17 00:00:00 2001 From: core23 Date: Tue, 9 Jan 2024 18:45:31 +0100 Subject: [PATCH] Fix possible null error in search --- 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(), ])); }