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/checksites.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/checksites.php') diff --git a/include/checksites.php b/include/checksites.php index e14837255..e9c08c202 100644 --- a/include/checksites.php +++ b/include/checksites.php @@ -25,8 +25,9 @@ function checksites_run($argv, $argc){ if($days < 1) $days = 30; - $r = q("select * from site where site_dead = 0 and site_update < %s - INTERVAL %s $sql_options ", - db_utcnow(), db_quoteinterval($days . ' DAY') + $r = q("select * from site where site_dead = 0 and site_update < %s - INTERVAL %s and site_type = %d $sql_options ", + db_utcnow(), db_quoteinterval($days . ' DAY'), + intval(SITE_TYPE_ZOT) ); if(! $r) -- cgit v1.2.3