From dbeae16dc142c3bc832718b0c29eefd6a82033d6 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 28 Sep 2015 04:21:29 -0700 Subject: add site_type to queries, first few - several more to go. --- include/externals.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/externals.php') 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']; -- cgit v1.2.3