aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connections.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-17 17:48:41 -0700
committerfriendica <info@friendica.com>2014-08-17 17:48:41 -0700
commit82eb265a20d73beff7673299a6c4ab8a4d8b8673 (patch)
tree8e67b7f7a86f800e810d7c45f15368ce91c748bc /mod/connections.php
parentbf3dc80233147a1dab9f034a192750f765d0436b (diff)
downloadvolse-hubzilla-82eb265a20d73beff7673299a6c4ab8a4d8b8673.tar.gz
volse-hubzilla-82eb265a20d73beff7673299a6c4ab8a4d8b8673.tar.bz2
volse-hubzilla-82eb265a20d73beff7673299a6c4ab8a4d8b8673.zip
add collections widget to connections page - and some more work on realms
Diffstat (limited to 'mod/connections.php')
-rw-r--r--mod/connections.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/connections.php b/mod/connections.php
index 1875ed908..028889647 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -337,6 +337,9 @@ function connections_content(&$a) {
}
$sql_extra .= (($searching) ? protect_sprintf(" AND xchan_name like '%$search_txt%' ") : "");
+ if($_REQUEST['gid']) {
+ $sql_extra .= " and xchan_hash in ( select xchan from group_member where gid = " . intval($_REQUEST['gid']) . " and uid = " . intval(local_user()) . " ) ";
+ }
$r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash
where abook_channel = %d and not (abook_flags & %d) and not (xchan_flags & %d ) $sql_extra $sql_extra2 ",