fix #328 by using a seperate query instead of group_concat

This commit is contained in:
Mario Vavti
2016-03-20 20:26:55 +01:00
parent 23419e4c26
commit 9fcd470aca
2 changed files with 22 additions and 9 deletions

View File

@@ -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();