diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 17:15:34 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 17:15:34 -0700 |
commit | 3b53cd56ef151586024cb99742a91d4a75afdb5b (patch) | |
tree | f0d02417d5cac33bb1d7999bbeefd11848b18d7f /mod/sitelist.php | |
parent | 6368b093375d50f929b0a419834299e6b62e274e (diff) | |
parent | 30e88a4f6b38e1d51ebcd97ac4b81c29f9ce4823 (diff) | |
download | volse-hubzilla-3b53cd56ef151586024cb99742a91d4a75afdb5b.tar.gz volse-hubzilla-3b53cd56ef151586024cb99742a91d4a75afdb5b.tar.bz2 volse-hubzilla-3b53cd56ef151586024cb99742a91d4a75afdb5b.zip |
Merge branch 'deadsite'
Diffstat (limited to 'mod/sitelist.php')
-rw-r--r-- | mod/sitelist.php | 8 |
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(); |