aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-20 19:56:36 -0700
committerredmatrix <git@macgirvin.com>2016-03-20 19:56:36 -0700
commitd3e7ef70e841c819d8ecf5e4b0900cb3f5b19aa4 (patch)
tree1fae16c33c620e6bfbfd14108692d61c70c04885 /include
parentfea532af4da522001c71eb79df5fc49c83833da9 (diff)
parentf5b22dfd5be2a8b1126a12fc389d359a46f8544b (diff)
downloadvolse-hubzilla-d3e7ef70e841c819d8ecf5e4b0900cb3f5b19aa4.tar.gz
volse-hubzilla-d3e7ef70e841c819d8ecf5e4b0900cb3f5b19aa4.tar.bz2
volse-hubzilla-d3e7ef70e841c819d8ecf5e4b0900cb3f5b19aa4.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include')
-rw-r--r--include/group.php16
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();