diff options
author | friendica <info@friendica.com> | 2013-12-11 15:04:09 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-11 15:04:09 -0800 |
commit | 2c02f57f276658269a6cc2031fb0fc9ac0a9077c (patch) | |
tree | 3a0199b0847bf9229bfdf60f8b58714a716c4048 /mod | |
parent | 40e2900326a25ba0e2feedb802d38b7052b194cc (diff) | |
download | volse-hubzilla-2c02f57f276658269a6cc2031fb0fc9ac0a9077c.tar.gz volse-hubzilla-2c02f57f276658269a6cc2031fb0fc9ac0a9077c.tar.bz2 volse-hubzilla-2c02f57f276658269a6cc2031fb0fc9ac0a9077c.zip |
remove hidden and deleted channels from viewconnections
Diffstat (limited to 'mod')
-rw-r--r-- | mod/viewconnections.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mod/viewconnections.php b/mod/viewconnections.php index e0b1af346..4f6f81d82 100644 --- a/mod/viewconnections.php +++ b/mod/viewconnections.php @@ -30,14 +30,11 @@ function viewconnections_content(&$a) { - $r = q("SELECT COUNT(abook_id) as total FROM abook WHERE abook_channel = %d AND abook_flags = 0 ", - intval($a->profile['uid']) - ); - if($r) - $a->set_pager_total($r[0]['total']); - - $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_flags = 0 order by xchan_name LIMIT %d , %d ", + $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_flags = 0 and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) order by xchan_name LIMIT %d , %d ", intval($a->profile['uid']), + intval(XCHAN_FLAGS_HIDDEN), + intval(XCHAN_FLAGS_ORPHAN), + intval(XCHAN_FLAGS_DELETED), intval($a->pager['start']), intval($a->pager['itemspage']) ); |