aboutsummaryrefslogtreecommitdiffstats
path: root/include/externals.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-27 20:57:45 -0700
committerfriendica <info@friendica.com>2014-03-27 20:57:45 -0700
commit52c456d254fff199bc4cfde75f9a9948f8532fdc (patch)
treee5b06801fef173cdf05d13ab7a47406f5037191b /include/externals.php
parentd99eaf151096dde28d56caa4b950cd2f3d4a1d83 (diff)
downloadvolse-hubzilla-52c456d254fff199bc4cfde75f9a9948f8532fdc.tar.gz
volse-hubzilla-52c456d254fff199bc4cfde75f9a9948f8532fdc.tar.bz2
volse-hubzilla-52c456d254fff199bc4cfde75f9a9948f8532fdc.zip
don't include standalone test sites in external host list
Diffstat (limited to 'include/externals.php')
-rw-r--r--include/externals.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/externals.php b/include/externals.php
index 244b4a59e..290f93a68 100644
--- a/include/externals.php
+++ b/include/externals.php
@@ -20,8 +20,9 @@ function externals_run($argv, $argc){
$url = $arr['url'];
}
else {
- $r = q("select site_url from site where site_url != '%s' order by rand() limit 1",
- dbesc(z_root())
+ $r = q("select site_url from site where site_url != '%s' and site_flags != %d order by rand() limit 1",
+ dbesc(z_root()),
+ intval(DIRECTORY_MODE_STANDALONE)
);
if($r)
$url = $r[0]['site_url'];