aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Dirsearch.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-18 14:17:33 -0800
committerzotlabs <mike@macgirvin.com>2018-01-18 14:17:33 -0800
commit89aa882c95b4d01bd7bf6ff461c1dcefdedea7bd (patch)
tree672bdd787b969c495d2a279da14c0781adb89a29 /Zotlabs/Module/Dirsearch.php
parent62e3083f23283d59c8e76c1bd8ccb2a07403551c (diff)
parenta0e1a8e0a20df640ef951dee4fb3c6ed19faee03 (diff)
downloadvolse-hubzilla-89aa882c95b4d01bd7bf6ff461c1dcefdedea7bd.tar.gz
volse-hubzilla-89aa882c95b4d01bd7bf6ff461c1dcefdedea7bd.tar.bz2
volse-hubzilla-89aa882c95b4d01bd7bf6ff461c1dcefdedea7bd.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Dirsearch.php')
-rw-r--r--Zotlabs/Module/Dirsearch.php5
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