From 6346c005278d83df3b6b6ae0880ee48f4b5c936e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 4 Dec 2016 11:42:40 -0800 Subject: bugfix for api group_members --- include/api_zot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/api_zot.php') diff --git a/include/api_zot.php b/include/api_zot.php index 256339bad..a01bc8804 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -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); -- cgit v1.2.3