From 5e761a106803e65b1e5b34733b303823193f617e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 21 Oct 2016 14:27:29 -0700 Subject: full revert, that wasn't working at all. Not sure why. --- Zotlabs/Module/Acl.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Zotlabs/Module/Acl.php') diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php index 3444fffa5..29c1e5280 100644 --- a/Zotlabs/Module/Acl.php +++ b/Zotlabs/Module/Acl.php @@ -354,8 +354,7 @@ class Acl extends \Zotlabs\Web\Controller { $dirmode = intval(get_config('system','directory_mode')); $search = ((x($_REQUEST,'search')) ? htmlentities($_REQUEST['search'],ENT_COMPAT,'UTF-8',false) : ''); - - if((! $search) || mbstrlen($search) < 3) + if(! $search || mb_strlen($search) < 2) return array(); $star = false; @@ -372,7 +371,6 @@ class Acl extends \Zotlabs\Web\Controller { if(strpos($search,'@') !== false) { $address = true; } - if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) { $url = z_root() . '/dirsearch'; -- cgit v1.2.3