diff options
author | Andrew Manning <andrew@reticu.li> | 2016-03-23 21:17:23 -0400 |
---|---|---|
committer | Andrew Manning <andrew@reticu.li> | 2016-03-23 21:17:23 -0400 |
commit | 59827b6dfdcab85b65853f3ee75365bda057a993 (patch) | |
tree | dc1871d3cba25d9064192d206bf24b16780621ab /include/group.php | |
parent | 61bef7d4b083c9c794469137798176b62c2f21cb (diff) | |
parent | f200dd4395e1d0e2a6200844ec4827a943bf09ea (diff) | |
download | volse-hubzilla-59827b6dfdcab85b65853f3ee75365bda057a993.tar.gz volse-hubzilla-59827b6dfdcab85b65853f3ee75365bda057a993.tar.bz2 volse-hubzilla-59827b6dfdcab85b65853f3ee75365bda057a993.zip |
Merge branch 'master' of https://github.com/redmatrix/hubzilla into contextual-help
Diffstat (limited to 'include/group.php')
-rw-r--r-- | include/group.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/group.php b/include/group.php index 22f221059..748ec0c13 100644 --- a/include/group.php +++ b/include/group.php @@ -211,6 +211,22 @@ function group_get_members($gid) { return $ret; } +function group_get_members_xchan($gid) { + $ret = array(); + if(intval($gid)) { + $r = q("SELECT xchan FROM group_member WHERE gid = %d AND uid = %d", + intval($gid), + intval(local_channel()) + ); + if(count($r)) { + foreach($r as $rr) { + $ret[] = $rr['xchan']; + } + } + } + return $ret; +} + function mini_group_select($uid,$group = '') { $grps = array(); |