aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ratingsearch.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-28 17:13:11 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-28 17:13:11 -0700
commite5f47cd14b9dd97385d93c2610e05d959e526ce8 (patch)
tree9863fff105662540bc6e18b8fac5dbb156e5d0f3 /mod/ratingsearch.php
parentdbeae16dc142c3bc832718b0c29eefd6a82033d6 (diff)
downloadvolse-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/ratingsearch.php')
-rw-r--r--mod/ratingsearch.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/ratingsearch.php b/mod/ratingsearch.php
index 9c4f2f827..173dd39ff 100644
--- a/mod/ratingsearch.php
+++ b/mod/ratingsearch.php
@@ -35,8 +35,9 @@ function ratingsearch_init(&$a) {
if($p)
$target = $p[0]['xchan_hash'];
else {
- $p = q("select * from site where site_url like '%s' ",
- dbesc('%' . $hash)
+ $p = q("select * from site where site_url like '%s' and site_type = %d ",
+ dbesc('%' . $hash),
+ intval(SITE_TYPE_ZOT)
);
if($p) {
$target = strtolower($hash);