From 04959a095f46272ecfee225e1dd85796f4e0676f Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 6 Apr 2015 16:14:12 -0700 Subject: make the findpeople widget honour the local/global directory setting --- mod/dirsearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/dirsearch.php') diff --git a/mod/dirsearch.php b/mod/dirsearch.php index 07621aaef..c741d31a3 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -100,7 +100,7 @@ function dirsearch_content(&$a) { if($name) $sql_extra .= dir_query_build($joiner,'xchan_name',$name); if($hub) - $sql_extra .= " $joiner xchan_hash in (select hubloc_hash from hubloc where hubloc_host = '" . protect_sprintf(dbesc($hub)) . "') "; + $sql_extra .= " and xchan_hash in (select hubloc_hash from hubloc where hubloc_host = '" . protect_sprintf(dbesc($hub)) . "') "; if($address) $sql_extra .= dir_query_build($joiner,'xchan_addr',$address); if($city) -- cgit v1.2.3