diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 17:13:11 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 17:13:11 -0700 |
commit | e5f47cd14b9dd97385d93c2610e05d959e526ce8 (patch) | |
tree | 9863fff105662540bc6e18b8fac5dbb156e5d0f3 /mod/rate.php | |
parent | dbeae16dc142c3bc832718b0c29eefd6a82033d6 (diff) | |
download | volse-hubzilla-e5f47cd14b9dd97385d93c2610e05d959e526ce8.tar.gz volse-hubzilla-e5f47cd14b9dd97385d93c2610e05d959e526ce8.tar.bz2 volse-hubzilla-e5f47cd14b9dd97385d93c2610e05d959e526ce8.zip |
create site records for all queued sites and check for death
Diffstat (limited to 'mod/rate.php')
-rw-r--r-- | mod/rate.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/rate.php b/mod/rate.php index a3a36b4a9..f30afed64 100644 --- a/mod/rate.php +++ b/mod/rate.php @@ -22,8 +22,9 @@ function rate_init(&$a) { $a->poi = $r[0]; } else { - $r = q("select * from site where site_url like '%s' ", - dbesc('%' . $target) + $r = q("select * from site where site_url like '%s' and site_type = %d", + dbesc('%' . $target), + intval(SITE_TYPE_ZOT) ); if($r) { $a->data['site'] = $r[0]; |