aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ratingsearch.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2015-09-29 08:01:51 +0200
committermrjive <mrjive@mrjive.it>2015-09-29 08:01:51 +0200
commit11c1573b55f278a664a90a2872d06a40b3ac3026 (patch)
tree4061879d490fec39ab01d3feeb575b86586fb7f8 /mod/ratingsearch.php
parent006ca4421a7027ccee4612beb99a1f9976146070 (diff)
parentb3525b865784ff5d2d5a76b913b8c86d139cc0f3 (diff)
downloadvolse-hubzilla-11c1573b55f278a664a90a2872d06a40b3ac3026.tar.gz
volse-hubzilla-11c1573b55f278a664a90a2872d06a40b3ac3026.tar.bz2
volse-hubzilla-11c1573b55f278a664a90a2872d06a40b3ac3026.zip
Merge pull request #5 from redmatrix/master
updating from original codebase
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);