diff --git a/include/ajax.orgs.php b/include/ajax.orgs.php index 0cf4f22d6ad391afff7543079da762f14113b314..f7be2b2d130e5672e71a88669b102cb2b96f74ee 100644 --- a/include/ajax.orgs.php +++ b/include/ajax.orgs.php @@ -29,7 +29,7 @@ class OrgsAjaxAPI extends AjaxController { $q = $_REQUEST['q']; $limit = isset($_REQUEST['limit']) ? (int) $_REQUEST['limit']:25; - if (strlen($q) < 2) + if (strlen($q) < 3) return $this->encode(array()); $orgs = Organization::objects() diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index 35bb513e973f3991c3dc729e4b19f4926f33ab39..6d726f5a189631861aa7986970284563bc52e573 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -48,7 +48,7 @@ class TicketsAjaxAPI extends AjaxController { $q = $_REQUEST['q']; - if (strlen($q) < 2) + if (strlen($q) < 3) return $this->encode(array()); global $ost; diff --git a/include/ajax.users.php b/include/ajax.users.php index bb94a1528992b9fb991d3f3e399de5dcefcd8bdb..dba3cb1da2fd19213b9a7dc7b453af8a0f5ea541 100644 --- a/include/ajax.users.php +++ b/include/ajax.users.php @@ -34,7 +34,7 @@ class UsersAjaxAPI extends AjaxController { $users=array(); $emails=array(); - if (strlen($q) < 2) + if (strlen($q) < 3) return $this->encode(array()); if (!$type || !strcasecmp($type, 'remote')) {