jsonExit($result); } $taglist = DBA::select( 'tag', ['name'], ["`name` LIKE ?", Strings::escapeHtml($request['t']) . "%"], ['order' => ['name'], 'limit' => 100] ); while ($tag = DBA::fetch($taglist)) { $result[] = ['text' => $tag['name']]; } DBA::close($taglist); $this->jsonExit($result); } }