aboutsummaryrefslogtreecommitdiffstats
path: root/mod/sitelist.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-09-29 12:40:24 +0200
committerzottel <github@zottel.net>2015-09-29 12:40:24 +0200
commitf950d27b3debfe08e022a477dbfb4fac101106e4 (patch)
tree38f62f0828163715c634e17290e2d77eb29d1b32 /mod/sitelist.php
parent8e410f14b1b5b23e4c7e41d4902ac7b9cb529c1b (diff)
parent2a2da48d1871f408232a8397632f06528c8b43ae (diff)
downloadvolse-hubzilla-f950d27b3debfe08e022a477dbfb4fac101106e4.tar.gz
volse-hubzilla-f950d27b3debfe08e022a477dbfb4fac101106e4.tar.bz2
volse-hubzilla-f950d27b3debfe08e022a477dbfb4fac101106e4.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod/sitelist.php')
-rw-r--r--mod/sitelist.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/sitelist.php b/mod/sitelist.php
index 12911cbd4..30b2359ac 100644
--- a/mod/sitelist.php
+++ b/mod/sitelist.php
@@ -28,7 +28,9 @@ function sitelist_init(&$a) {
$result = array('success' => false);
- $r = q("select count(site_url) as total from site where true $sql_extra ");
+ $r = q("select count(site_url) as total from site where site_type = %d $sql_extra ",
+ intval(SITE_TYPE_ZOT)
+ );
if($r)
$result['total'] = intval($r[0]['total']);
@@ -36,7 +38,9 @@ function sitelist_init(&$a) {
$result['start'] = $start;
$result['limit'] = $limit;
- $r = q("select * from site where true $sql_extra $sql_order $sql_limit");
+ $r = q("select * from site where site_type = %d $sql_extra $sql_order $sql_limit",
+ intval(SITE_TYPE_ZOT)
+ );
$result['results'] = 0;
$result['entries'] = array();