fix a surprise string in autocomplete

This commit is contained in:
Shish 2021-10-06 16:59:32 +00:00
parent 679360dd9c
commit 2d0c942084

View File

@ -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);