aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.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/hubloc.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/hubloc.php')
-rw-r--r--include/hubloc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 674a3885f..a1171b0e2 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -16,7 +16,9 @@ function is_matrix_url($url) {
function prune_hub_reinstalls() {
- $r = q("select site_url from site where true");
+ $r = q("select site_url from site where site_type = %d",
+ intval(SITE_TYPE_ZOT)
+ );
if($r) {
foreach($r as $rr) {
$x = q("select count(*) as t, hubloc_sitekey, max(hubloc_connected) as c from hubloc where hubloc_url = '%s' group by hubloc_sitekey order by c",