aboutsummaryrefslogtreecommitdiffstats
path: root/include/group.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-21 10:22:30 +1100
committerredmatrix <git@macgirvin.com>2016-03-21 10:22:30 +1100
commit48e62bb50a4fade3724d81558dc5209973a57e8c (patch)
tree44d5c69c21ebc650b449acfe2d6fc704e994ef0b /include/group.php
parent23151100dee1051d77d893a616cbc166eb5dcca1 (diff)
parent1ddb43b0d32ab0dadb3fabc1ed79c96c4365eb77 (diff)
downloadvolse-hubzilla-48e62bb50a4fade3724d81558dc5209973a57e8c.tar.gz
volse-hubzilla-48e62bb50a4fade3724d81558dc5209973a57e8c.tar.bz2
volse-hubzilla-48e62bb50a4fade3724d81558dc5209973a57e8c.zip
Merge pull request #329 from git-marijus/master
fix #328 by using a seperate query instead of group_concat
Diffstat (limited to 'include/group.php')
-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();