check for typeahead action without php warnings

This commit is contained in:
Uwe Steinmann 2023-01-08 16:24:02 +01:00
parent 23c4327382
commit 409df834a3

View File

@ -72,7 +72,7 @@ if($fullsearch) {
// Search in Fulltext {{{
if (isset($_GET["query"]) && is_string($_GET["query"])) {
$query = $_GET["query"];
if($_GET['action'] == 'typeahead')
if(isset($_GET['action']) && ($_GET['action'] == 'typeahead'))
$query .= '*';
}
else {