diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-03-20 20:26:55 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-03-20 20:26:55 +0100 |
commit | 9fcd470acacf3dc283c91c52f591f5aaa3983ba4 (patch) | |
tree | 2e44a1dd615c54426b26fa1e73694e163cee4c2d /include | |
parent | 23419e4c26a3f971dd9ec50a37c78c009c12ffca (diff) | |
download | volse-hubzilla-9fcd470acacf3dc283c91c52f591f5aaa3983ba4.tar.gz volse-hubzilla-9fcd470acacf3dc283c91c52f591f5aaa3983ba4.tar.bz2 volse-hubzilla-9fcd470acacf3dc283c91c52f591f5aaa3983ba4.zip |
fix #328 by using a seperate query instead of group_concat
Diffstat (limited to 'include')
-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(); |