bugfix for api group_members

This commit is contained in:
zotlabs
2016-12-04 11:42:40 -08:00
parent bd4bdab81c
commit 6346c00527
3 changed files with 151 additions and 5 deletions

View File

@@ -237,8 +237,8 @@
}
if($r) {
$x = q("select * from group_member left join xchan on group_member.xchan = xchan.xchan_hash
left join abook on abook_xchan = xchan_hash where gid = %d",
$x = q("select * from group_member left join abook on abook_xchan = xchan and abook_channel = group_member.uid left join xchan on group_member.xchan = xchan.xchan_hash
where gid = %d",
intval($r[0]['id'])
);
json_return_and_die($x);