Accept tags consisting of only two letters, too.

This commit is contained in:
2016-11-13 22:57:19 +01:00
parent 0a55730696
commit 1f7fe35cec
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ class ProvideAutoSuggest extends JSONController
{
$data = array_unique(explode(' ', urldecode($_REQUEST['data'])));
$data = array_filter($data, function($item) {
return strlen($item) >= 3;
return strlen($item) >= 2;
});
$this->payload = ['items' => []];