Skip to content

Commit 12ff061

Browse files
fix(SearchController): replace superglobal with ServerRequest->has()
Replace `empty($_REQUEST['ajax_page_request'])` with `! $request->has('ajax_page_request')` to use the injected ServerRequest consistently. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
1 parent d4cbd06 commit 12ff061

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Controllers/Database/SearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __invoke(ServerRequest $request): Response
9090
}
9191

9292
// If we are in an Ajax request, we need to exit after displaying all the HTML
93-
if ($request->isAjax() && empty($_REQUEST['ajax_page_request'])) {
93+
if ($request->isAjax() && ! $request->has('ajax_page_request')) {
9494
return $this->response->response();
9595
}
9696

0 commit comments

Comments
 (0)