aboutsummaryrefslogtreecommitdiffstats
path: root/include/checksites.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-28 04:21:29 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-28 04:21:29 -0700
commitdbeae16dc142c3bc832718b0c29eefd6a82033d6 (patch)
tree79307eaed3cf795f5adfc3677b0fa2685b048816 /include/checksites.php
parentedbcba6f113a5c8b709cdbfca892e845b5096ede (diff)
downloadvolse-hubzilla-dbeae16dc142c3bc832718b0c29eefd6a82033d6.tar.gz
volse-hubzilla-dbeae16dc142c3bc832718b0c29eefd6a82033d6.tar.bz2
volse-hubzilla-dbeae16dc142c3bc832718b0c29eefd6a82033d6.zip
add site_type to queries, first few - several more to go.
Diffstat (limited to 'include/checksites.php')
-rw-r--r--include/checksites.php5
1 files changed, 3 insertions, 2 deletions
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)