aboutsummaryrefslogtreecommitdiffstats
path: root/include/externals.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-09-29 12:40:24 +0200
committerzottel <github@zottel.net>2015-09-29 12:40:24 +0200
commitf950d27b3debfe08e022a477dbfb4fac101106e4 (patch)
tree38f62f0828163715c634e17290e2d77eb29d1b32 /include/externals.php
parent8e410f14b1b5b23e4c7e41d4902ac7b9cb529c1b (diff)
parent2a2da48d1871f408232a8397632f06528c8b43ae (diff)
downloadvolse-hubzilla-f950d27b3debfe08e022a477dbfb4fac101106e4.tar.gz
volse-hubzilla-f950d27b3debfe08e022a477dbfb4fac101106e4.tar.bz2
volse-hubzilla-f950d27b3debfe08e022a477dbfb4fac101106e4.zip
Merge remote-tracking branch 'upstream/master'
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 3b6d170d5..18c034bb2 100644
--- a/include/externals.php
+++ b/include/externals.php
@@ -28,9 +28,10 @@ function externals_run($argv, $argc){
}
else {
$randfunc = db_getfunc('RAND');
- $r = q("select site_url, site_pull from site where site_url != '%s' and site_flags != %d order by $randfunc limit 1",
+ $r = q("select site_url, site_pull from site where site_url != '%s' and site_flags != %d and site_type = %d order by $randfunc limit 1",
dbesc(z_root()),
- intval(DIRECTORY_MODE_STANDALONE)
+ intval(DIRECTORY_MODE_STANDALONE),
+ intval(SITE_TYPE_ZOT)
);
if($r)
$url = $r[0]['site_url'];