diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-21 14:27:29 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-21 14:27:29 -0700 |
commit | 5e761a106803e65b1e5b34733b303823193f617e (patch) | |
tree | d31f11da041ed1d3ddb70fcb290088039bae7028 | |
parent | afff751ff193d03014ed28cdd565b833fd1f5bdc (diff) | |
download | volse-hubzilla-5e761a106803e65b1e5b34733b303823193f617e.tar.gz volse-hubzilla-5e761a106803e65b1e5b34733b303823193f617e.tar.bz2 volse-hubzilla-5e761a106803e65b1e5b34733b303823193f617e.zip |
full revert, that wasn't working at all. Not sure why.
-rw-r--r-- | Zotlabs/Module/Acl.php | 4 |
1 files changed, 1 insertions, 3 deletions
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'; |