diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 17:15:34 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 17:15:34 -0700 |
commit | 3b53cd56ef151586024cb99742a91d4a75afdb5b (patch) | |
tree | f0d02417d5cac33bb1d7999bbeefd11848b18d7f /include/externals.php | |
parent | 6368b093375d50f929b0a419834299e6b62e274e (diff) | |
parent | 30e88a4f6b38e1d51ebcd97ac4b81c29f9ce4823 (diff) | |
download | volse-hubzilla-3b53cd56ef151586024cb99742a91d4a75afdb5b.tar.gz volse-hubzilla-3b53cd56ef151586024cb99742a91d4a75afdb5b.tar.bz2 volse-hubzilla-3b53cd56ef151586024cb99742a91d4a75afdb5b.zip |
Merge branch 'deadsite'
Diffstat (limited to 'include/externals.php')
-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 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']; |