diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-01-18 13:20:23 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-01-18 13:20:23 +0100 |
commit | a0e1a8e0a20df640ef951dee4fb3c6ed19faee03 (patch) | |
tree | 672bdd787b969c495d2a279da14c0781adb89a29 /Zotlabs/Module/Dirsearch.php | |
parent | a486c906863a59c0ebed80192b2c0e9aeb111f12 (diff) | |
parent | eb86ffefbfb38cf76316940a6aa164530f9b9348 (diff) | |
download | volse-hubzilla-a0e1a8e0a20df640ef951dee4fb3c6ed19faee03.tar.gz volse-hubzilla-a0e1a8e0a20df640ef951dee4fb3c6ed19faee03.tar.bz2 volse-hubzilla-a0e1a8e0a20df640ef951dee4fb3c6ed19faee03.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Dirsearch.php')
-rw-r--r-- | Zotlabs/Module/Dirsearch.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php index 53ec1a850..08f1f7a13 100644 --- a/Zotlabs/Module/Dirsearch.php +++ b/Zotlabs/Module/Dirsearch.php @@ -97,7 +97,10 @@ class Dirsearch extends \Zotlabs\Web\Controller { else $sync = false; - + if(($dirmode == DIRECTORY_MODE_STANDALONE) && (! $hub)) { + $hub = \App::get_hostname(); + } + if($hub) $hub_query = " and xchan_hash in (select hubloc_hash from hubloc where hubloc_host = '" . protect_sprintf(dbesc($hub)) . "') "; else |