Skip to content

Commit

Permalink
Fix possible null error in search (#8149)
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored Jan 20, 2024
1 parent a210094 commit f14a2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Action/SearchAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]));
}
Expand Down

0 comments on commit f14a2b1

Please sign in to comment.