Skip to content

Commit

Permalink
Solves Issue #107 (#111)
Browse files Browse the repository at this point in the history
Query parameter "q" does not work
  • Loading branch information
schnumsel committed Feb 25, 2021
1 parent 7836c86 commit ee2c65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tntsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function onPagesInitialized(): void
}
}

$this->query = (string)($uri->param('q', null) ?? $uri->query('q') ?: '');
$this->query = (string)($uri->param('q', null) ?: $uri->query('q') ?: '');

if ($this->query) {
$snippet = $this->getFormValue('sl');
Expand Down

0 comments on commit ee2c65b

Please sign in to comment.