diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/api_zot.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |