un-set autocomplete default to empty string rather than null

This commit is contained in:
Shish 2021-11-06 16:12:23 +00:00
parent 6de6287663
commit 34f75cfb22

View File

@ -16,7 +16,7 @@ class AutoComplete extends Extension
if ($event->page_matches("api/internal/autocomplete")) {
$limit = (int)($_GET["limit"] ?? 0);
$s = $_GET["s"] ?? null;
$s = $_GET["s"] ?? "";
$res = $this->complete($s, $limit);