fix a surprise string in autocomplete
This commit is contained in:
parent
679360dd9c
commit
2d0c942084
@ -15,7 +15,7 @@ class AutoComplete extends Extension
|
||||
global $page;
|
||||
|
||||
if ($event->page_matches("api/internal/autocomplete")) {
|
||||
$limit = $_GET["limit"] ?? 0;
|
||||
$limit = (int)($_GET["limit"] ?? 0);
|
||||
$s = $_GET["s"] ?? null;
|
||||
|
||||
$res = $this->complete($s, $limit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user