diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-29 16:28:35 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-29 16:28:35 -0800 |
commit | 302c5afdeed2dbb7502a1dd79e269a3082d5eb18 (patch) | |
tree | 13b6ddc74313517d00986272c533ad2aca7feb71 /include/externals.php | |
parent | 9f90806027568666d6cd60eb41ec66d278fe05cd (diff) | |
download | volse-hubzilla-302c5afdeed2dbb7502a1dd79e269a3082d5eb18.tar.gz volse-hubzilla-302c5afdeed2dbb7502a1dd79e269a3082d5eb18.tar.bz2 volse-hubzilla-302c5afdeed2dbb7502a1dd79e269a3082d5eb18.zip |
don't try to pull public content from dead sites
Diffstat (limited to 'include/externals.php')
-rw-r--r-- | include/externals.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/externals.php b/include/externals.php index 18c034bb2..4ac9754e2 100644 --- a/include/externals.php +++ b/include/externals.php @@ -28,7 +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 and site_type = %d order by $randfunc limit 1", + + // fixme this query does not deal with directory realms. + + $r = q("select site_url, site_pull from site where site_url != '%s' and site_flags != %d and site_type = %d and site_dead = 0 order by $randfunc limit 1", dbesc(z_root()), intval(DIRECTORY_MODE_STANDALONE), intval(SITE_TYPE_ZOT) |