aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'];