aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rate.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/rate.php')
-rw-r--r--mod/rate.php5
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];