diff options
author | friendica <info@friendica.com> | 2014-03-27 20:57:45 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-27 20:57:45 -0700 |
commit | 52c456d254fff199bc4cfde75f9a9948f8532fdc (patch) | |
tree | e5b06801fef173cdf05d13ab7a47406f5037191b | |
parent | d99eaf151096dde28d56caa4b950cd2f3d4a1d83 (diff) | |
download | volse-hubzilla-52c456d254fff199bc4cfde75f9a9948f8532fdc.tar.gz volse-hubzilla-52c456d254fff199bc4cfde75f9a9948f8532fdc.tar.bz2 volse-hubzilla-52c456d254fff199bc4cfde75f9a9948f8532fdc.zip |
don't include standalone test sites in external host list
-rw-r--r-- | include/externals.php | 5 |
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']; |